fromVector
fun fromVector(vector: Vector3, alpha: Double = 1.0, linearity: Linearity = Linearity.LINEAR): ColorRGBa(source)
Create a ColorRGBa object from a Vector3
Parameters
vector
input vector, [x, y, z]
is mapped to [r, g, b]
alpha
optional alpha value, default is 1.0
Create a ColorRGBa object from a Vector4
Parameters
vector
input vector, [x, y, z, w]
is mapped to [r, g, b, a]