cooler method
Adjusts the hue of every color in the palette to be cooler by amount
,
capping the value at 270
degrees.
If relative
is true, amount
will be treated as a percentage and the
hue will be adjusted by the percent of the distance from the current hue
to 270
that amount
represents. If false, amount
will be treated as
the number of degrees to adjust the hue by.
Implementation
void cooler(
num amount, {
bool relative = true,
}) {
for (var i = 0; i < length; i++) {
colors[i] = colors[i].cooler(amount, relative: relative) as O;
}
}