VectorToColor
A plugin to convert a vector to a color string.
Usage
vecToRGB()
vecToRGB(vec: Vec3Array | Vec4Array | Vec3Object | Vec4Object): string
Converts vector (3D or 4D) to RGB string
3D Vector [number, number, number] | { x: number, y: number, z: number }
4D Vector [number, number, number, number] | { x: number, y: number, z: number, w: number }
vecToHSL()
vecToHSL(vec: Vec3Array | Vec4Array | Vec3Object | Vec4Object): string
Converts vector (3D or 4D) to HSL string
3D Vector [number, number, number] | { x: number, y: number, z: number }
4D Vector [number, number, number, number] | { x: number, y: number, z: number, w: number }
vecToHWB()
vecToHWB(vec: Vec3Array | Vec4Array | Vec3Object | Vec4Object): string
Converts vector (3D or 4D) to HWB string
3D Vector [number, number, number] | { x: number, y: number, z: number }
4D Vector [number, number, number, number] | { x: number, y: number, z: number, w: number }