stack

Home > @infiniteobjects/data-types > Color > spin

Color.spin() method

Spin the hue a given amount. Calling with 0, 360, or -360 will do nothing.

Signature:

spin(amount: number): Color;

Parameters

Parameter Type Description
amount number The amount to spin by. The valid range is -360 to 360.

Returns:

Color