group=dev.inmo artifact=micro_utils.colors.common package=$group.$artifact central_package=$group/$artifact
Colors
¶
Group:$groupArtifactId:$artifact
Adding dependency:
Info
All the samples below will represent HEXAColor with r==0xaa, g==0xff, b==0x00 and a==0xff
This package contains mainly one file: HEXAColor. This file
contains unified color with HEXA format. It consumes UInt by default constructor and r/g/b/a parameters in other main constructors:
HEXAColor(0xaaff00ffu) // 0xRGBAu as UInt
HEXAColor(r = 0xaa, g = 0xff, b = 0x00, a = 0xff)
HEXAColor(r = 0xaa, g = 0xff, b = 0x00, aOfOne = 1f)
Besides, you may use one of converters: