Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure toGamut always returns a color object
Calling toGamut with a color that is already in gamut for the specified color space would return the original color parameter which may or may not be a color object. For example calling toGamut("red", "oklch") would return "red" instead of a color object. This change ensures that a color object will always be returned.
- Loading branch information