toGamut method

SassColor toGamut(
  1. GamutMapMethod method
)

Returns a copy of this color that's in-gamut in the current color space.

Implementation

SassColor toGamut(GamutMapMethod method) =>
    isInGamut ? this : method.map(this);