Represents one ARGB color and provides color sampling/comparison helpers.
Syntax
Color(value, /)Constructor parameters
| Name | Description |
|---|---|
valueString | Number | Hex string (`#AARRGGBB`/`#RRGGBB`) or raw ARGB number. Required · Positional only No default |
Returns
Example
cursor = Point(540, 920)
picked = Color.get(cursor)
if picked == "#FFFFFFFF":
click(cursor, random=6)Fields
| Name | Description |
|---|---|
argbNumber | Raw ARGB integer value. |
aInt | Alpha channel 0-255. |
rInt | Red channel 0-255. |
gInt | Green channel 0-255. |
bInt | Blue channel 0-255. |
hexString | Hex string `#AARRGGBB`. |
c1 = Color("#FFFFFFFF")
c2 = Color(4294967295)