Represents a Color in RGB format and is mostly used in the UI Classes like the Menus or Labels.
The Color class is different from the UIColor class used in the UIKit Framework.
Creates a new color based on the Red, Green and Blue format:
red = 176 green = 17 blue = 32 color = Color.from_rgb(red, green, blue)
The values of the RGB are from 0 to 255
Creates a new color bases on its hexadecimal representation:
color = Color.from_hex("b01120")
If a String is in a hexadecimal representation of a color it can be converted: