al_map_rgb_f

ALLEGRO_COLOR al_map_rgb_f(float r, float g, float b)
Introduced in 5.0.0

Convert r, g, b, (ranging from 0.0f-1.0f) into an ALLEGRO_COLOR, using 1.0f for alpha.

See also: al_map_rgba, al_map_rgb, al_map_rgba_f

Examples: ex_bitmap, ex_bitmap_flip, ex_blend, ex_color, ex_disable_screensaver, ex_display_options, ex_draw, ex_drawpixels, ex_draw_bitmap, ex_filter, ex_font_justify, ex_fs_window, ex_icon, ex_lines, ex_lockbitmap, ex_logo, ex_mixer_pp, ex_mouse_events, ex_multisample, ex_pixelformat, ex_premulalpha, ex_prim, ex_threads, ex_timer, ex_transform, ex_vsync, ex_warp_mouse


Most helpful discussions:

Other recent discussions: