al_map_rgb
ALLEGRO_COLOR al_map_rgb(
unsigned char r, unsigned char g, unsigned char b)
Introduced in 5.0.0
Convert r, g, b (ranging from 0-255) into an ALLEGRO_COLOR, using 255 for alpha.
See also: al_map_rgba, al_map_rgba_f, al_map_rgb_f
Examples: ex_audio_props, ex_bitmap_target, ex_blend, ex_blend2, ex_blit, ex_color, ex_disable_screensaver, ex_drawpixels, ex_draw_bitmap, ex_font, ex_font_justify, ex_fs_resize, ex_fs_window, ex_gldepth, ex_gp2xwiz, ex_haiku, ex_iphone, ex_joystick_events, ex_joystick_hotplugging, ex_keyboard_focus, ex_lockbitmap, ex_membmp, ex_mouse, ex_mouse_cursor, ex_mouse_events, ex_mouse_focus, ex_nodisplay, ex_pixelformat, ex_prim, ex_resize2, ex_stream_seek, ex_subbitmap, ex_synth, ex_timer, ex_vsync, ex_windows, ex_winfull
Most helpful discussions:
- [A5] event queue & timing problems (1)
- class problem/ drawing pixels A5 (1)
- Cannot exit fullscreen with ALLEGRO_OPENGL flag
- Redrawing smoothly while display is being resized
- FPS camera in Allegro 5
- Allegro 5.2.2 Setup
- can't compile after installing
- Weird issue with font, can anybody help?
- Blacking out the display while resizing
- KrampusHack 2016
Other recent discussions:
- Drawing text slows down FPS dramatically
- Bitmap behind mappy map
- Statically link Allegro 5 in Ubuntu?
- Vsync-Dependent Game Loop
- How to play video in allegro 5
- About shaders and ALLEGRO_BITMAPS
- c++ Allegro 5 - drawing bitmap region over backgound
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Change adapter un runtime