setFromColor

Sets the vector components from the RGB components of the color c (x = r, y = g, z = b).

Return

A reference to this vector.