Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getr8(3alleg4) [opendarwin man page]

getr8(3alleg4)							  Allegro manual						    getr8(3alleg4)

NAME
getr8, getg8, getb8, getr15, getg15, getb15, getr16, getg16, getb16, getr24, getg24, getb24, getr32, getg32, getb32 - Extract a color com- ponent from the specified pixel format. Allegro game programming library. SYNOPSIS
#include <allegro.h> int getr8(int c); int getg8(int c); int getb8(int c); int getr15(int c); int getg15(int c); int getb15(int c); int getr16(int c); int getg16(int c); int getb16(int c); int getr24(int c); int getg24(int c); int getb24(int c); int getr32(int c); int getg32(int c); int getb32(int c); DESCRIPTION
Given a color in a display dependent format, these functions extract one of the red, green, or blue components (ranging 0-255). Example: int r, g, b, color_value; color_value = _getpixel15(screen, 100, 100); r = getr15(color_value); g = getg15(color_value); b = getb15(color_value); SEE ALSO
geta32(3alleg4), getr(3alleg4), getr_depth(3alleg4), makecol(3alleg4), set_color_depth(3alleg4) Allegro version 4.4.2 getr8(3alleg4)

Check Out this Related Man Page

getr8(3alleg4)							  Allegro manual						    getr8(3alleg4)

NAME
getr8, getg8, getb8, getr15, getg15, getb15, getr16, getg16, getb16, getr24, getg24, getb24, getr32, getg32, getb32 - Extract a color com- ponent from the specified pixel format. Allegro game programming library. SYNOPSIS
#include <allegro.h> int getr8(int c); int getg8(int c); int getb8(int c); int getr15(int c); int getg15(int c); int getb15(int c); int getr16(int c); int getg16(int c); int getb16(int c); int getr24(int c); int getg24(int c); int getb24(int c); int getr32(int c); int getg32(int c); int getb32(int c); DESCRIPTION
Given a color in a display dependent format, these functions extract one of the red, green, or blue components (ranging 0-255). Example: int r, g, b, color_value; color_value = _getpixel15(screen, 100, 100); r = getr15(color_value); g = getg15(color_value); b = getb15(color_value); SEE ALSO
geta32(3alleg4), getr(3alleg4), getr_depth(3alleg4), makecol(3alleg4), set_color_depth(3alleg4) Allegro version 4.4.2 getr8(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies

Featured Tech Videos