Closed svgeesus closed 1 year ago
I think it's pretty weird to make it in-place when specifying a different color space. So, we should either drop that sugar (authors can always do color.to(space).toGamut()
) OR continue having a function that returns a new object.
Thoughts, @tabatkins ?
Agreed, either it should stay in the same color space and just come into gamut, or it should always return a fresh object.
Given the current name, I think the parallel with .to()
is worthwhile to maintain, so it should always return a fresh object; if we wanted to remove the conversion we might want to slightly rename it too.
Agreed, so I'm gonna go ahead and close this.
Currently this method returns a new instance. Should it instead make the adjustment in place?