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.18 1999/05/24 12:09:35 mirar Exp $ + **! $Id: colors.c,v 1.19 1999/05/24 13:01:28 mirar 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:90:   **! 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"   #include <config.h>    - RCSID("$Id: colors.c,v 1.18 1999/05/24 12:09:35 mirar Exp $"); + RCSID("$Id: colors.c,v 1.19 1999/05/24 13:01:28 mirar Exp $");      #include "config.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:710:    return;    }    }    else if (sp[-1].type==T_ARRAY)    {    if (sp[-1].u.array->size==3 &&    sp[-1].u.array->item[0].type==T_INT &&    sp[-1].u.array->item[1].type==T_INT &&    sp[-1].u.array->item[2].type==T_INT &&    sp[-1].u.array->item[0].u.integer == THIS->rgb.r && -  sp[-1].u.array->item[0].u.integer == THIS->rgb.g && -  sp[-1].u.array->item[0].u.integer == THIS->rgb.b) +  sp[-1].u.array->item[1].u.integer == THIS->rgb.g && +  sp[-1].u.array->item[2].u.integer == THIS->rgb.b)    {    pop_stack();    push_int(1);    return;    }    }    else if (sp[-1].type==T_INT)    {    if (sp[-1].u.integer == THIS->rgb.r &&    THIS->rgb.r==THIS->rgb.g &&