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.47 2001/03/17 20:42:46 grubba Exp $ + **! $Id: colors.c,v 1.48 2001/03/29 02:54:11 per 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:172:   **! 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.47 2001/03/17 20:42:46 grubba Exp $"); + RCSID("$Id: colors.c,v 1.48 2001/03/29 02:54:11 per Exp $");      #include "image_machine.h"      #include <math.h>      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "threads.h"   #include "builtin_functions.h"   #include "dmalloc.h"   #include "operators.h"   #include "module_support.h"   #include "opcodes.h" -  + #include "program_id.h"      #include "image.h"   #include "colortable.h"      /* This must be included last! */   #include "module_magic.h"      static struct mapping *colors=NULL;   static struct object *colortable=NULL;   static struct array *colornames=NULL;
pike.git/src/modules/Image/colors.c:1750:    ADD_FUNCTION("cmyk",image_make_cmyk_color,tFunc(tOr(tInt,tFlt)    tOr(tInt,tFlt)    tOr(tInt,tFlt)    tOr(tInt,tFlt),tObj), 0);    ADD_FUNCTION("html",image_make_html_color,tFunc(tStr,tObj),0);    ADD_FUNCTION("guess",image_guess_color,tFunc(tStr,tObj),0);    ADD_FUNCTION("greylevel",image_make_greylevel_color,tFunc(tInt,tObj),0);    ADD_FUNCTION("_indices",image_colors_indices,tFunc(tNone,tArr(tStr)),0);    ADD_FUNCTION("_values",image_colors_values,tFunc(tNone,tArr(tObj)),0);    +  image_color_program->id = PROG_IMAGE_COLOR_COLOR_ID; +     add_program_constant("Color",image_color_program,0);   }      void exit_image_colors(void)   {    free_program(image_color_program);    if (colors)    {    int i;