pike.git / src / modules / Image / colors.c

version» Context lines:

pike.git/src/modules/Image/colors.c:1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.55 2001/07/30 13:19:35 nilsson Exp $ + **! $Id: colors.c,v 1.56 2001/09/17 19:06:21 nilsson Exp $   **! submodule Color   **!   **! This module keeps names and easy handling   **! for easy color support. It gives you an easy   **! way to get colors from names.   **!   **! A color is here an object, containing color   **! information and methods for conversion, see below.   **!   **! <ref>Image.Color</ref> can be called to make a color object.
pike.git/src/modules/Image/colors.c:140:   **! }   **! i->box(tPOS,y,tPOS+XTEXT-XSP-1,y+YZ-1,   **! c->neon()->dark()->dark()->dark());   **! a->box(tPOS,y,tPOS+XTEXT-XSP-1,y+YZ-1,Color.white);   **! i->paste_alpha_color(F->write(c->name()), Color.white,   **! txPOS(c->name()),y+1);   **! y+=YZz;   **! }   **!   **! write(illustration(i,(["alpha":a]))); - **! write(mktag("br")); + **! write(mktag("br")+"\n");   **! }   **!   **! void main()   **! {   **! array cs=values(Color);   **!   **! array orig=({Color.black,Color.red,Color.green,Color.yellow,   **! Color.blue,Color.violet,Color.cyan,Color.white});   **! cs-=orig;   **! cs-=({Color.pikegreen,Color.avantgardepikegreen,Color.roxenorange,
pike.git/src/modules/Image/colors.c:181:   **! class Color   **! This is the color object. It has six readable variables,   **! <tt>r</tt>, <tt>g</tt>, <tt>b</tt>, for the <i>red</i>,   **! <i>green</i> and <i>blue</i> values,   **! and <tt>h</tt>, <tt>s</tt>, <tt>v</tt>, for   **! the <i>hue</i>, <i>saturation</i> anv <i>value</i> values.   */      #include "global.h"    - RCSID("$Id: colors.c,v 1.55 2001/07/30 13:19:35 nilsson Exp $"); + RCSID("$Id: colors.c,v 1.56 2001/09/17 19:06:21 nilsson Exp $");      #include "image_machine.h"      #include <math.h>      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"