warmer method
Adjusts the hue of every color in the palette to be warmer by amount
,
capping the value at 90
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 90
that amount
represents. If false, amount
will be treated as
the number of degrees to adjust the hue by.
Implementation
void warmer(
num amount, {
bool relative = true,
}) {
for (var i = 0; i < length; i++) {
colors[i] = colors[i].warmer(amount, relative: relative) as O;
}
}