You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If space is provided, it's used for the interpolation. If not, then a) if both colors have the same colorSpace, it's used for interpolation, otherwise Lab is used.
If delta is provided, the number of colors generated is such that the distance between any two consecutive ones does not exceed delta. maxSteps is used as a failsafe, to avoid getting way too many colors.
If steps are provided, the colors returned are at least that many (if delta is also provided they may need to be more)
The text was updated successfully, but these errors were encountered:
Done, and updated the first post with the names and API I ended up going with.
If colorSpace is provided, it's used for the interpolation. If not, then a) if both colors have the same colorSpace, it's used for interpolation, otherwise Lab is used.
Not sure if this is actually a good idea. A lot of colors are sRGB, this means they'd be interpolated in sRGB, which is pretty shitty. We do this in CSS for backwards compat, but here perhaps we can just default to Lab?
API sketch:
color.steps(color2, {space, delta, steps, maxSteps})
Color.steps(color1, color2, {colorSpace, delta, steps, maxSteps})
If space is provided, it's used for the interpolation. If not, then a) if both colors have the same colorSpace, it's used for interpolation, otherwise Lab is used.
If delta is provided, the number of colors generated is such that the distance between any two consecutive ones does not exceed delta. maxSteps is used as a failsafe, to avoid getting way too many colors.
If steps are provided, the colors returned are at least that many (if delta is also provided they may need to be more)
The text was updated successfully, but these errors were encountered: