Colors
Colors in the MacroLibX are presented with the mlx_color
union.
🌈 The mlx_color
union
This union is presented as :
The way it is implemented offers two way of accessing and modifying the color.
You can access the whole color as a 4 bytes unsigned integer using the rgba
attribute or you can access
each sub-color data with attributes r
, g
, b
, a
.