color_to_hex
Serializes a Color into an RGBA hex string.
Signature
color_to_hex
Serializes a Color into an RGBA hex string.Signature
color_to_hex(color: Color) -> strParameters
| Name | Type | Default | Description |
|---|---|---|---|
color | Color | None | color argument for this API call. |
Returns
strExample
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_from_hex
Return to the colors overview or continue with the quickstart.