linux man page for makecol15_dither

Query: makecol15_dither

OS: linux

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

makecol15_dither(3alleg4)					  Allegro manual					 makecol15_dither(3alleg4)

NAME
makecol15_dither, makecol16_dither - Calculates a dithered 15 or 16-bit RGB value. Allegro game programming library. SYNOPSIS
#include <allegro.h> int makecol15_dither(int r, int g, int b, int x, int y); int makecol16_dither(int r, int g, int b, int x, int y); DESCRIPTION
Given both a color value and a pixel coordinate, calculate a dithered 15 or 16-bit RGB value. This can produce better results when reducing images from truecolor to hicolor. In addition to calling these functions directly, hicolor dithering can be automatically enabled when loading graphics by calling the set_color_conversion() function, for example set_color_conversion(COLORCONV_REDUCE_TRUE_TO_HI | COLOR- CONV_DITHER). Example: int pixel1, pixel2; /* The following two color values MAY be different. */ pixel1 = makecol16_dither(255, 192, 64, 0, 0); pixel2 = makecol16_dither(255, 192, 64, 1, 0); RETURN VALUE
Returns the RGB value dithered for the specified coordinate. SEE ALSO
makecol(3alleg4), makecol8(3alleg4), set_color_conversion(3alleg4) Allegro version 4.4.2 makecol15_dither(3alleg4)
Related Man Pages
makecol15_dither(3alleg4) - suse
makecol15_dither(3alleg4) - osx
makecol15_dither(3alleg4) - redhat
makecol15_dither(3alleg4) - php
makecol15_dither(3alleg4) - v7
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Please Donate to the Red Cross for Earthquake and Tsunami Relief in Japan
Merry Christmas!
Status of UNIX.COM Forum Transformation
UNIX.com End of Year (EOY) Report (2019)