COLORSPIN function

COLORSPIN(Color, Amount) COLORSPIN(Color; Amount)

Color

Color or { Color }

The color whose hue should be changed.

Amount

Number or { Number }

The degrees that the hue should be rotated by. While the amount may be any number, the meaningful range is 0 to 360. Rotating a color by 360 degrees returns the same color.

Returns

Color or { Color }

A version of the given color with a new hue.

Returns a color whose hue has been changed by the given amount. The implementation uses the Hue-Saturation-Lightness (HSL) color model to change the hue.

This function is Calcapp-specific.

Examples

COLORSPIN(Color.Red, 200)COLORSPIN(Color,Red; 200)

Returns the default red color, rotated by 200 degrees, yielding blue.

COLORSPIN(Color.Red, { 200, 100 })COLORSPIN(Color,Red; { 200; 100 })

Returns the default red color, rotated by 200 and 100 degrees, yielding an array containing the colors blue and green.

COLORSPIN(COLOR({ "red", "blue" }), { 200, 100 })COLORSPIN(COLOR({ "red"; "blue" }); { 200; 100 })

Returns the default red and blue colors, rotated by 200 and 100 degrees, respectively, yielding an array containing the colors blue and red.