[name]

This is a utility class to handle values in RGB and HSV color spaces.

Methods

.adjustHSV( [page:Color color], [page:Number h], [page:Number s], [page:Number v] )

Taking a color as input, converts it to HSV, and applies the h, s, v parameters in place, i.e. no new color is returned but the original object is modified.
[page:Color color] — source color to be adjusted
[page:Number h] — hue change amount
[page:Number s] — saturation change amount
[page:Number v] — value change amount

.rgbToHsv( [page:Color color], [page:Object hsv] )

Converts an RGB color into an HSV triplet and returns the converted color.
[page:Color color] — source color to be converted
[page:Object hsv] — object in which the return value will be stored, if not null

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]