color_from_hex
Parses a hex color string into a Color.
Signature
color_from_hex
Parses a hex color string into a Color.Signature
color_from_hex(value: str) -> ColorParameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | None | value argument for this API call. |
Returns
ColorExample
from conjure import *
init_window(360, 640, "API")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_text("Moosh", 120, 300, 28, BLACK)
end_drawing()See also
Colorfadecolor_to_hex
Return to the colors overview or continue with the quickstart.