toRgb8

fun toRgb8(): Int

Convert this color to an 8-bit packed RGB integer (32 bits total)

This is equivalent to the integer value of hex color codes (e.g. #FA00FA).

Return

color as 32-bit integer in RGB8 format