const color = new Color(#26080cff);
const brightened = color.brighten({ amount: 10, space: HSL });
const darkened = color.darken({ amount: 10, space: HSL });
const saturated = color.saturate({ amount: 10, space: HSL });
const desaturated = color.desaturate({ amount: 10, space: HSL });const color = new Color(#26080cff); const spun = color.spin(180);
const color = new Color('#26080cff');
const red = new Color('red');
const green = new Color('green');
const blue = new Color('blue');
const mixedWithRed = color.mixWith([red], { space: 'LINEAR_RGB', type: 'ADDITIVE' });
const mixedWithGreen = color.mixWith([green], { space: 'LINEAR_RGB', type: 'ADDITIVE' });
const mixedWithBlue = color.mixWith([blue], { space: 'LINEAR_RGB', type: 'ADDITIVE' });
const mixedWithAll = color.mixWith([red, green, blue], { space: 'LINEAR_RGB', type: 'ADDITIVE' });const color = new Color('#26080cff');
const red = new Color('red');
const green = new Color('green');
const blue = new Color('blue');
const blendedWithRed = color.blendWith(red, { mode: 'NORMAL', space: 'RGB', ratio: 0.5 });
const blendedWithGreen = color.blendWith(green, { mode: 'NORMAL', space: 'RGB', ratio: 0.5 });
const blendedWithBlue = color.blendWith(blue, { mode: 'NORMAL', space: 'RGB', ratio: 0.5 });const color = new Color('#26080cff');
const red = new Color('red');
const green = new Color('green');
const blue = new Color('blue');
const averagedWithRed = color.averageWith([red], { space: 'LINEAR_RGB' });
const averagedWithGreen = color.averageWith([green], { space: 'LINEAR_RGB' });
const averagedWithBlue = color.averageWith([blue], { space: 'LINEAR_RGB' });
const averagedWithAll = color.averageWith([red, green, blue], { space: 'LINEAR_RGB' });const color = new Color('#26080cff');
const targetColor = new Color('#cbc376ff');
const gradient = color.createGradientTo(targetColor, {
stops: 5,
space: 'RGB',
easing: 'LINEAR',
clamp: true,
});const color = new Color('#26080cff');
const stopColors = ['red', 'green', 'blue'];
const gradient = color.createGradientThrough(stopColors, {
stops: 6,
space: 'RGB',
interpolation: 'LINEAR',
easing: 'LINEAR',
clamp: true,
});> color: Color(#936d2f)
> updated color: Color(#6c5023)