Zernikalos/zernikalos.math/ZColor ZColor @Serializable(with = ZColorSerializer::class)class ZColor : ZAlgebraObject(source) Members Constructors ZColor Link copied to clipboard constructor()constructor(red: Float, green: Float, blue: Float, alpha: Float = 1.0f)constructor(red: Int, green: Int, blue: Int, alpha: Int = 255)constructor(hex: String) Types Companion Link copied to clipboard object Companion Properties a Link copied to clipboard var a: Float alpha Link copied to clipboard var alpha: Float b Link copied to clipboard var b: Float blue Link copied to clipboard var blue: Float byteArray Link copied to clipboard open override val byteArray: ByteArray byteSize Link copied to clipboard open override val byteSize: Int count Link copied to clipboard open override val count: Int = 1Number of individual instances this object represents dataType Link copied to clipboard open override val dataType: ZDataTypeThe data type stored floatArray Link copied to clipboard open override val floatArray: FloatArray g Link copied to clipboard var g: Float green Link copied to clipboard var green: Float r Link copied to clipboard var r: Float red Link copied to clipboard var red: Float size Link copied to clipboard open override val size: Int = 4Number of elements contained within the values array with the specific type defined in dataType Functions colorFromBytes Link copied to clipboard fun colorFromBytes(red: Int, green: Int, blue: Int, alpha: Int) colorFromFloats Link copied to clipboard fun colorFromFloats(red: Float, green: Float, blue: Float, alpha: Float) colorFromHex Link copied to clipboard fun colorFromHex(hex: String)