Color
Creates a color value with red, green, blue, and alpha channels.
Signature
Color
Creates a color value with red, green, blue, and alpha channels.Signature
Color(r: int, g: int, b: int, a: int = 255) -> ColorParameters
| Name | Type | Default | Description |
|---|---|---|---|
r | int | None | r argument for this API call. |
g | int | None | g argument for this API call. |
b | int | None | b argument for this API call. |
a | int | 255 | a 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
fadecolor_from_hexcolor_to_hex
Return to the colors overview or continue with the quickstart.