makecol15_dither man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

makecol15_dither(3)		Allegro manual		   makecol15_dither(3)

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	 func‐
       tions  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(3), makecol8(3), set_color_conversion(3)

Allegro				 version 4.4.2		   makecol15_dither(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net