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.48 2001/03/29 02:54:11 per Exp $ + **! $Id: colors.c,v 1.49 2001/04/14 09:44:22 hubbe 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.48 2001/03/29 02:54:11 per Exp $"); + RCSID("$Id: colors.c,v 1.49 2001/04/14 09:44:22 hubbe Exp $");      #include "image_machine.h"      #include <math.h>      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"
pike.git/src/modules/Image/colors.c:1730:    ADD_FUNCTION("light",image_color_light,tFunc(tNone,tObj),0);    ADD_FUNCTION("dark",image_color_dark,tFunc(tNone,tObj),0);    ADD_FUNCTION("neon",image_color_neon,tFunc(tNone,tObj),0);    ADD_FUNCTION("bright",image_color_bright,tFunc(tNone,tObj),0);    ADD_FUNCTION("dull",image_color_dull,tFunc(tNone,tObj),0);       ADD_FUNCTION("`*",image_color_mult,tFunc(tFlt,tObj),0);    ADD_FUNCTION("`+",image_color_add,tFunc(tObj,tObj),0);       image_color_program=end_program(); +  image_color_program->flags |= +  PROGRAM_CONSTANT | +  PROGRAM_NO_EXPLICIT_DESTRUCT ;       /* this is the Image.Color stuff */       ADD_FUNCTION("`[]",image_colors_index,tFunc(tStr,tObj),0);    ADD_FUNCTION("`()",image_make_color,    tOr(tFunc(tStr,tObj),    tFunc(tInt tInt tInt,tObj)),0);    ADD_FUNCTION("rgb",image_make_rgb_color,tFunc(tInt tInt tInt,tObj),0);    ADD_FUNCTION("hsv",image_make_hsv_color,    tOr(tFunc(tInt tInt tInt,tObj),