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

version» Context lines:

pike.git/src/modules/Image/colors.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: colors.c,v 1.74 2005/03/15 20:56:20 per Exp $ + || $Id: colors.c,v 1.75 2005/11/12 20:36:07 nilsson Exp $   */      /*   **! module Image   **! submodule Color   **!   **! This module keeps names and easy handling   **! for easy color support. It gives you an easy   **! way to get colors from names.   **!
pike.git/src/modules/Image/colors.c:1772:       ADD_FUNCTION("`*",image_color_mult,tFunc(tFlt,tObjIs_IMAGE_COLOR_COLOR_ID),0);    ADD_FUNCTION("`+",image_color_add,tFunc(tObjImpl_IMAGE_COLOR_COLOR_ID,    tObjIs_IMAGE_COLOR_COLOR_ID),0);       image_color_program=end_program();    image_color_program->flags |=    PROGRAM_CONSTANT |    PROGRAM_NO_EXPLICIT_DESTRUCT ;    +  PIKE_MODULE_EXPORT(Image, image_color_program); +     /* this is the Image.Color stuff */       ADD_FUNCTION("`[]",image_colors_index,tFunc(tStr,tObjIs_IMAGE_COLOR_COLOR_ID),0);    ADD_FUNCTION("`()",image_make_color,    tOr(tFunc(tStr,tObjIs_IMAGE_COLOR_COLOR_ID),    tFunc(tInt tInt tInt,tObjIs_IMAGE_COLOR_COLOR_ID)),0);    ADD_FUNCTION("rgb",image_make_rgb_color,    tFunc(tInt tInt tInt,tObjIs_IMAGE_COLOR_COLOR_ID),0);    ADD_FUNCTION("hsv",image_make_hsv_color,    tOr(tFunc(tInt tInt tInt,tObjIs_IMAGE_COLOR_COLOR_ID),