/dports/x11/xscreensaver/xscreensaver-5.44/utils/ |
H A D | colors.c | 29 if (ncolors > 0) in free_colors() 111 int ncolors, wanted; in make_color_ramp() local 130 ncolors = (ncolors / 2) + 1; in make_color_ramp() 335 if (ncolors[i] > 0) in make_color_path() 581 *ncolorsP = ncolors; in make_smooth_colormap() 608 colors, &ncolors, in make_uniform_colormap() 623 *ncolorsP = ncolors; in make_uniform_colormap() 689 if (ncolors > 0) in make_random_colormap() 693 if (ncolors > 0) in make_random_colormap() 706 ncolors = i; in make_random_colormap() [all …]
|
/dports/x11/virtualgl/virtualgl-3.0/server/fltk/src/ |
H A D | Fl_Pixmap.cxx | 220 if (ncolors < 0) { in copy_data() 222 ncolors = -ncolors; in copy_data() 224 *new_row = new char[ncolors * 4]; in copy_data() 226 ncolors = 1; in copy_data() 295 if (ncolors < 0) { in copy() 297 ncolors = -ncolors; in copy() 301 ncolors = 1; in copy() 374 if (ncolors < 0) { in color_average() 376 ncolors = -ncolors; in color_average() 453 if (ncolors < 0) { in desaturate() [all …]
|
/dports/graphics/sdump/sdump-c5fb55b/static/libsixel/ |
H A D | dither.c | 124 ncolors = 256; in sixel_dither_create() 125 } else if (ncolors < 2) { in sixel_dither_create() 126 ncolors = 2; in sixel_dither_create() 129 datasize = ncolors * 3; in sixel_dither_create() 140 dither->ncolors = ncolors; in sixel_dither_create() 185 int ncolors; in sixel_dither_get() local 191 ncolors = 2; in sixel_dither_get() 196 ncolors = 2; in sixel_dither_get() 201 ncolors = 16; in sixel_dither_get() 206 ncolors = 256; in sixel_dither_get() [all …]
|
/dports/math/abs/abs-src-0.908/Xpm/ |
H A D | Attrib.c | 49 int ncolors; 70 int ncolors; 97 int ncolors; 166 attributes->ncolors = 0; 191 attributes->ncolors = image->ncolors; 194 image->ncolors = 0; 217 attributes->ncolors = 0; 220 attributes->ncolors = image->ncolors; 226 image->ncolors = 0; 273 attributes->ncolors = 0; [all …]
|
/dports/x11-toolkits/open-motif/motif-2.3.8/lib/Xm/ |
H A D | XpmAttrib.c | 57 unsigned int ncolors; 80 unsigned int ncolors; 105 int ncolors; 169 attributes->ncolors = 0; 197 attributes->ncolors = image->ncolors; 200 image->ncolors = 0; 219 attributes->ncolors = 0; 221 attributes->ncolors = image->ncolors; 227 image->ncolors = 0; 271 attributes->ncolors = 0; [all …]
|
H A D | Xpmparse.c | 211 image->ncolors = ncolors; 309 || !xpmNextUI(data, ncolors)) 343 unsigned int ncolors; 378 xpmFreeColorTable(colorTable, ncolors); 438 xpmFreeColorTable(colorTable, ncolors); 444 xpmFreeColorTable(colorTable, ncolors); 518 unsigned int ncolors; 553 if (ncolors > 256) { 559 for (a = 0; a < ncolors; a++) 595 for (a = 0; a < ncolors; a++) { [all …]
|
/dports/x11-toolkits/lesstif/lesstif-0.95.2/lib/Xm-2.1/ |
H A D | XpmAttrib.c | 101 unsigned int ncolors; 124 unsigned int ncolors; 149 int ncolors; 213 attributes->ncolors = 0; 241 attributes->ncolors = image->ncolors; 244 image->ncolors = 0; 263 attributes->ncolors = 0; 265 attributes->ncolors = image->ncolors; 271 image->ncolors = 0; 315 attributes->ncolors = 0; [all …]
|
/dports/graphics/libvisual04/libvisual-0.4.0/libvisual/ |
H A D | lv_palette.c | 56 VisPalette *visual_palette_new (int ncolors) in visual_palette_new() argument 95 pal->ncolors = 0; in visual_palette_init() 113 visual_log_return_val_if_fail (dest->ncolors == src->ncolors, -VISUAL_ERROR_PALETTE_SIZE); in visual_palette_copy() 133 pal->ncolors = ncolors; in visual_palette_allocate_colors() 153 pal->ncolors = 0; in visual_palette_free_colors() 177 if (src1->ncolors != src2->ncolors) in visual_palette_blend() 180 if (dest->ncolors != src1->ncolors) in visual_palette_blend() 183 for (i = 0; i < dest->ncolors; i++) { in visual_palette_blend() 212 irate = irate % pal->ncolors; in visual_palette_color_cycle() 226 if (irate == pal->ncolors - 1) in visual_palette_color_cycle() [all …]
|
/dports/graphics/libsixel/sixel-1.8.6/src/ |
H A D | dither.c | 319 (*ppdither)->ncolors = ncolors; in sixel_dither_new() 400 int ncolors; in sixel_dither_get() local 406 ncolors = 2; in sixel_dither_get() 411 ncolors = 2; in sixel_dither_get() 416 ncolors = 16; in sixel_dither_get() 426 ncolors = 16; in sixel_dither_get() 431 ncolors = 16; in sixel_dither_get() 436 ncolors = 2; in sixel_dither_get() 441 ncolors = 4; in sixel_dither_get() 737 int ncolors; in sixel_dither_apply_palette() local [all …]
|
/dports/games/abuse_sdl/abuse-0.8/src/imlib/ |
H A D | palette.cpp | 28 ncolors=fp->read_uint16(); in palette() 39 ncolors=fp->read_uint16(); in palette() 54 fp->write_uint16(ncolors); in write() 55 return fp->write(pal,sizeof(color)*ncolors)==ncolors; in write() 132 for (i=1; i<ncolors; i++) in make_black_white() 141 CHECK(ncolors==256); in set_rgbs() 176 p=new palette(ncolors); in copy() 262 if (ncolors==256) in defaults() 265 else if (ncolors==16) in defaults() 296 CONDITION((int)red<=ncolors && (int)green<=ncolors && (int)blue<=ncolors, in set() [all …]
|
/dports/x11/libXpm/libXpm-3.5.13/src/ |
H A D | Attrib.c | 54 unsigned int ncolors, in CreateOldColorTable() argument 77 unsigned int ncolors) in FreeOldColorTable() argument 102 int ncolors) in xpmFreeColorTable() argument 165 attributes->ncolors = 0; in xpmInitAttributes() 193 attributes->ncolors = image->ncolors; in xpmSetAttributes() 196 image->ncolors = 0; in xpmSetAttributes() 215 attributes->ncolors = 0; in xpmSetAttributes() 217 attributes->ncolors = image->ncolors; in xpmSetAttributes() 223 image->ncolors = 0; in xpmSetAttributes() 266 attributes->ncolors = 0; in XpmFreeAttributes() [all …]
|
/dports/math/giacxcas/fltk-1.3.0/src/ |
H A D | Fl_Pixmap.cxx | 288 if (ncolors < 0) { in copy_data() 290 ncolors = -ncolors; in copy_data() 294 ncolors = 1; in copy_data() 363 if (ncolors < 0) { in copy() 365 ncolors = -ncolors; in copy() 369 ncolors = 1; in copy() 442 if (ncolors < 0) { in color_average() 444 ncolors = -ncolors; in color_average() 521 if (ncolors < 0) { in desaturate() 523 ncolors = -ncolors; in desaturate() [all …]
|
/dports/x11-toolkits/fltk/fltk-1.3.8/src/ |
H A D | Fl_Pixmap.cxx | 296 if (ncolors < 0) { in copy_data() 298 ncolors = -ncolors; in copy_data() 302 ncolors = 1; in copy_data() 371 if (ncolors < 0) { in copy() 373 ncolors = -ncolors; in copy() 377 ncolors = 1; in copy() 450 if (ncolors < 0) { in color_average() 452 ncolors = -ncolors; in color_average() 529 if (ncolors < 0) { in desaturate() 531 ncolors = -ncolors; in desaturate() [all …]
|
/dports/x11-toolkits/ntk/ntk/src/ |
H A D | Fl_Pixmap.cxx | 288 if (ncolors < 0) { in copy_data() 290 ncolors = -ncolors; in copy_data() 294 ncolors = 1; in copy_data() 363 if (ncolors < 0) { in copy() 365 ncolors = -ncolors; in copy() 369 ncolors = 1; in copy() 442 if (ncolors < 0) { in color_average() 444 ncolors = -ncolors; in color_average() 521 if (ncolors < 0) { in desaturate() 523 ncolors = -ncolors; in desaturate() [all …]
|
/dports/graphics/libvisual/libvisual-0.2.0/libvisual/ |
H A D | lv_palette.c | 56 VisPalette *visual_palette_new (int ncolors) in visual_palette_new() argument 65 visual_palette_allocate_colors (pal, ncolors); in visual_palette_new() 82 visual_log_return_val_if_fail (dest->ncolors == src->ncolors, -VISUAL_ERROR_PALETTE_SIZE); in visual_palette_copy() 101 pal->colors = visual_mem_new0 (VisColor, ncolors); in visual_palette_allocate_colors() 102 pal->ncolors = ncolors; in visual_palette_allocate_colors() 122 pal->ncolors = 0; in visual_palette_free_colors() 146 if (src1->ncolors != src2->ncolors) in visual_palette_blend() 149 if (dest->ncolors != src1->ncolors) in visual_palette_blend() 152 for (i = 0; i < dest->ncolors; i++) { in visual_palette_blend() 181 irate = irate % pal->ncolors; in visual_palette_color_cycle() [all …]
|
/dports/graphics/openrm/rm160/rm/ |
H A D | rmdraw1.c | 314 if ((ncolors != 0) && (ncolors != nverts)) in OGLPRIMPARMLIST() 348 if (ncolors != 0) in OGLPRIMPARMLIST() 416 if ((ncolors != 0) && (ncolors != nverts)) in OGLPRIMPARMLIST() 456 if (ncolors != 0) in OGLPRIMPARMLIST() 483 if (ncolors == 0) in OGLPRIMPARMLIST() 585 if (ncolors != 0) in OGLPRIMPARMLIST() 646 if (ncolors != 0) in OGLPRIMPARMLIST() 699 if (ncolors != 0) in OGLPRIMPARMLIST() 760 if (ncolors != 0) in OGLPRIMPARMLIST() 846 if (ncolors != 0) in OGLPRIMPARMLIST() [all …]
|
/dports/x11/libX11/libX11-1.7.2/src/ |
H A D | QuColors.c | 38 int ncolors) in _XQueryColors() argument 47 SetReqLen(req, ncolors, ncolors); /* each pixel is a CARD32 */ in _XQueryColors() 49 for (i = 0; i < ncolors; i++) in _XQueryColors() 54 xrgb *color = Xmallocarray(ncolors, sizeof(xrgb)); in _XQueryColors() 56 unsigned long nbytes = (long) ncolors * SIZEOF(xrgb); in _XQueryColors() 60 for (i = 0; i < ncolors; i++) { in _XQueryColors() 80 int ncolors) in XQueryColors() argument 90 while (ncolors >= n) { in XQueryColors() 93 ncolors -= n; in XQueryColors() 95 if (ncolors > 0) in XQueryColors() [all …]
|
/dports/graphics/leptonica/leptonica-1.76.0/src/ |
H A D | spixio.c | 219 l_int32 d, ncolors; in sreadHeaderSpix() local 246 ncolors = data[5]; in sreadHeaderSpix() 370 ncolors = 0; in pixSerializeToMemory() 392 data[5] = ncolors; in pixSerializeToMemory() 393 if (ncolors > 0) in pixSerializeToMemory() 395 index = 6 + ncolors; in pixSerializeToMemory() 446 ncolors = data[5]; in pixDeserializeFromMemory() 447 imdata_size = data[6 + ncolors]; in pixDeserializeFromMemory() 456 if (ncolors < 0 || ncolors > 256) in pixDeserializeFromMemory() 462 imdata_size = data[6 + ncolors]; in pixDeserializeFromMemory() [all …]
|
/dports/x11/xlockmore/xlockmore-5.67/xlock/ |
H A D | color.c | 494 ncolors = (ncolors / 2) + 1; in make_color_ramp() 557 ncolors = (ncolors > 170 ? ncolors - 20 : in make_color_ramp() 558 ncolors > 100 ? ncolors - 10 : in make_color_ramp() 559 ncolors > 75 ? ncolors - 5 : in make_color_ramp() 560 ncolors > 25 ? ncolors - 3 : in make_color_ramp() 561 ncolors > 10 ? ncolors - 2 : in make_color_ramp() 562 ncolors > 2 ? ncolors - 1 : in make_color_ramp() 565 if (ncolors > 0) in make_color_ramp() 1026 ncolors = i; in make_random_colormap() 1058 j -= ncolors; in rotate_colors() [all …]
|
/dports/graphics/p5-Image-PNG-Libpng/Image-PNG-Libpng-0.57/examples/ |
H A D | q.pl | 8 my $ncolors = 40; 9 my $palette = randompalette ($ncolors); 10 write_with_palette ($file, $palette, $ncolors, [], "random"); 11 my $picked = points ($file, $ncolors); 12 my @hist = (1) x $ncolors; 13 write_with_palette ($file, $picked, $ncolors, \@hist, "picked"); 18 my ($file, $palette, $ncolors, $hist, $name) = @_; 20 $rpng->set_quantize ($palette, $ncolors, $hist, 1); 29 my ($pngfile, $ncolors) = @_; 36 for (0..$ncolors-1) {
|
/dports/devel/upp/upp/uppsrc/Draw/ |
H A D | Palette.cpp | 10 int ncolors; member 41 for(int i = 0; i < ncolors; i++) { in SetLine() 79 : cv_pal(cv_pal), palette(palette), ncolors(ncolors) in sPalCv() 110 : cv_pal(cv_pal), palette(palette), ncolors(ncolors) in sPalCv() 190 ASSERT(ncolors <= 256); in sPalMaker() 215 while(count < ncolors) { in sPalMaker() 218 if(2 * count > ncolors) in sPalMaker() 259 ASSERT(ncolors <= 256); in CreatePaletteCv() 266 ASSERT(ncolors <= 256); in CreatePalette() 273 ASSERT(ncolors <= 256); in CreatePalette() [all …]
|
/dports/math/R-cran-psych/psych/R/ |
H A D | spider.R | 2 "radar" <- function(x,labels=NULL,center=FALSE,connect=FALSE,scale=1,ncolors=31,fill=FALSE,add=FALS… argument 7 if(ncolors < 2) {colors <- FALSE} else {colors <- TRUE} 18 colramp <- gr(ncolors) 20 colramp <- grey((ncolors:0)/ncolors)} 44 …if(fill) {polygon(c(0,Oldx , x1*scaler,0),c(0,Oldy,y1*scaler,0),col=colramp[ceiling(scaler*ncolors… 53 …els=NULL,rescale = FALSE,center=FALSE,connect=TRUE,overlay=FALSE,scale=1,ncolors=31,fill=FALSE,mai… argument 59 …radar(data[y,x],labels=labels,center=center,connect=connect,scale=scale,ncolors=ncolors,fill=fill,… 64 …data[y[i],x],labels=labels,center=center,connect=connect,scale=scale,ncolors=ncolors,fill=fill,mai… 65 …data[y[i],x],labels=labels,center=center,connect=connect,scale=scale,ncolors=ncolors,fill=fill,add… 68 …radar(data[y[i],x],labels=labels,center=center,connect=connect,scale=scale,ncolors=ncolors,fill=fi…
|
/dports/lang/swi-pl/swipl-8.2.3/packages/xpce/src/img/ |
H A D | giftoxpm.c | 53 alloc_colortable(int ncolors, void *closure) in alloc_colortable() argument 56 if ( ncolors < 0 || ncolors > 256 ) in alloc_colortable() 59 img->ncolors = ncolors; in alloc_colortable() 60 img->colorTable = XpmMalloc(sizeof(XpmColor) * ncolors); in alloc_colortable() 63 { memset(img->colorTable, 0, sizeof(XpmColor) * ncolors); in alloc_colortable() 77 if ( index < 0 || index >= (int)img->ncolors ) in alloc_color() 101 i, img->ncolors)); in gif_extension() 103 if ( i < 0 || i >= img->ncolors ) in gif_extension() 123 img->ncolors = 0; in XpmReadGIF()
|
/dports/games/devilutionX/devilutionX-1.2.1/SourceS/ |
H A D | sdl_compat.h | 48 …ine int SDLC_SetSurfaceColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors) in SDLC_SetSurfaceColors() argument 51 return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) - 1; in SDLC_SetSurfaceColors() 53 return SDL_SetPaletteColors(surface->format->palette, colors, firstcolor, ncolors); in SDLC_SetSurfaceColors() 60 return SDLC_SetSurfaceColors(surface, palette->colors, 0, palette->ncolors); in SDLC_SetSurfaceColors() 66 …eColors(SDL_Surface *surface, SDL_Palette *palette, SDL_Color *colors, int firstcolor, int ncolors) in SDLC_SetSurfaceAndPaletteColors() argument 69 if (ncolors > (palette->ncolors - firstcolor)) { in SDLC_SetSurfaceAndPaletteColors() 74 SDL_memcpy(palette->colors + firstcolor, colors, ncolors * sizeof(*colors)); in SDLC_SetSurfaceAndPaletteColors() 78 SDL_SetColors(SDL_GetVideoSurface(), colors, firstcolor, ncolors); in SDLC_SetSurfaceAndPaletteColors() 82 return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) - 1; in SDLC_SetSurfaceAndPaletteColors() 84 if (SDL_SetPaletteColors(palette, colors, firstcolor, ncolors) < 0) in SDLC_SetSurfaceAndPaletteColors()
|
/dports/graphics/urt/urt-3.1b1_12/tools/ |
H A D | applymap.c | 117 if ( in_hdr.ncolors == 1 && in_hdr.ncmap > 1 ) 120 out_hdr.ncolors = in_hdr.ncmap; 121 for ( i = 1; i < out_hdr.ncolors; i++ ) 132 out_hdr.ncmap = out_hdr.ncolors; 147 for ( i = in_hdr.ncolors + in_hdr.alpha - 1; 169 for ( i = 0; i < out_hdr.ncolors; i++ ) 181 for ( i = 0; i < out_hdr.ncolors; i++ ) 209 for ( c = 1; c < out_hdr.ncolors; c++ ) 216 for ( c = 0; c < out_hdr.ncolors; 226 for ( c = 0; c < out_hdr.ncolors; [all …]
|