fade

Returns a copy of a color with adjusted alpha.

Signature

fade

Returns a copy of a color with adjusted alpha.

Signature

fade(color: Color, alpha: float) -> Color

Parameters

NameTypeDefaultDescription
colorColorNonecolor argument for this API call.
alphafloatNonealpha argument for this API call.

Returns

Color

Example

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

  • Color
  • color_from_hex
  • color_to_hex

Return to the colors overview or continue with the quickstart.