Closed endel closed 7 years ago
Whoops, my bad. Could you apply the same change to ambient.d.ts
as well? Out of curiosity, what is your use case such that you are applying colors to the particles yourself?
@andrewstart just updated it all to number[]
, is that ok? :)
In my scenario, I have a "smoke" particle, and I change just the colors when the player gets lower hp.
They are basically the same, but I had used [number, number, number]
because it was more specific - the length of the array is always 3.
This pull request prevents this error from happening:
It occurs when trying to associate
startColor
orendColor
to the result ofparticles.ParticleUtils.hexToRGB(...)
, which returns a explicit[number, number, number]
instead ofnumber[]
.