Home
last modified time | relevance | path

Searched refs:maxcolor (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/dports/lang/fpc-source/fpc-3.2.2/tests/webtbs/
H A Dtw2514.pp17 var maxcolor,mincolor:Extended;
28 maxcolor:=g;
31 maxcolor:=r;
35 if b>maxcolor then
36 maxcolor:=b;
38 l:=maxcolor;
45 s:=(maxcolor-mincolor)/(maxcolor+mincolor)
47 s:=(maxcolor-mincolor)/(2-maxcolor-mincolor);
48 if r=maxcolor then h:=(g-b)/(maxcolor-mincolor);
49 if g=maxcolor then h:=2+(b-r)/(maxcolor-mincolor);
[all …]
/dports/science/frontistr/FrontISTR-c66bdc397de319ca59a0565b3f3b1a3b33f0c50c/hecmw1/src/visualizer/
H A Dhecmw_vis_color_mapping.c13 double maxcolor, int color_mapping_style, in value_to_rgb() argument
19 if (fabs(maxcolor - mincolor) > EPSILON) in value_to_rgb()
20 value = (value - mincolor) / (maxcolor - mincolor); in value_to_rgb()
25 maxcolor = interval_point[1]; in value_to_rgb()
26 if (fabs(maxcolor - mincolor) > EPSILON) in value_to_rgb()
27 value = (value - mincolor) / (maxcolor - mincolor); in value_to_rgb()
H A Dhecmw_vis_generate_histogram_vr.h12 double *mincolor, double *maxcolor);
29 double maxcolor, double feap_minmax[2]);
31 double maxcolor, double feai_minmax[2]);
H A Dhecmw_vis_color_composite_vr.c186 if(fabs(maxcolor-mincolor)>EPSILON)
187 value=(value-mincolor)/(maxcolor-mincolor);
192 maxcolor=interval_point[1];
193 if(fabs(maxcolor-mincolor)>EPSILON)
194 value=(value-mincolor)/(maxcolor-mincolor);
218 del_l=(maxcolor-mincolor)/255.0;
515 if (fabs(maxcolor - mincolor) > EPSILON) in compute_color_vr()
516 value = (value - mincolor) / (maxcolor - mincolor); in compute_color_vr()
521 maxcolor = interval_point[1]; in compute_color_vr()
522 if (fabs(maxcolor - mincolor) > EPSILON) in compute_color_vr()
[all …]
H A Dhecmw_vis_generate_histogram_vr.c17 double *mincolor, double *maxcolor) { in find_color_minmax_vr() argument
25 if (value > *maxcolor) *maxcolor = value; in find_color_minmax_vr()
360 double maxcolor, double feap_minmax[2]) { in find_feap_minmax() argument
365 color = mincolor + (maxcolor - mincolor) * i / 255.0; in find_feap_minmax()
378 double maxcolor, double feai_minmax[2]) { in find_feai_minmax() argument
383 color = mincolor + (maxcolor - mincolor) * i / 255.0; in find_feai_minmax()
H A Dhecmw_vis_color_composite_sf.c234 double accum_rgba[4], double mincolor, double maxcolor, in compute_color_sf() argument
246 if (fabs(maxcolor - mincolor) > EPSILON) in compute_color_sf()
247 value = (value - mincolor) / (maxcolor - mincolor); in compute_color_sf()
252 maxcolor = interval_point[1]; in compute_color_sf()
253 if (fabs(maxcolor - mincolor) > EPSILON) in compute_color_sf()
254 value = (value - mincolor) / (maxcolor - mincolor); in compute_color_sf()
/dports/math/polymake/polymake-4.5/apps/polytope/src/
H A Dvertex_colors.cc70 HSV maxcolor(max_rgb), mincolor(min_rgb); in vertex_colors() local
74 if (!upper_bound) maxcolor.saturation *= 0.5; in vertex_colors()
78 Hmax = maxcolor.hue, in vertex_colors()
81 Smax = maxcolor.saturation, in vertex_colors()
84 Vmax = maxcolor.value, in vertex_colors()
91 *c = maxcolor; in vertex_colors()
/dports/dns/zkt/zkt-1.1.4/
H A Dtcap.c50 static int maxcolor; variable
87 maxcolor = 8; in tc_init()
140 maxcolor = tgetnum ("Co"); in tc_init()
141 if ( maxcolor < 0 ) /* no colors ? */ in tc_init()
143 if ( maxcolor > 8 ) in tc_init()
144 maxcolor = 8; in tc_init()
148 for ( i = 0; i < maxcolor; i++ ) in tc_init()
187 maxcolor = 0; in tc_init()
279 if ( color < 0 || color >= maxcolor ) in tc_color()
/dports/graphics/gimp-app/gimp-2.10.30/plug-ins/file-dds/
H A Ddxt.c768 maxcolor[2] = maxcolor[1] = 0; in get_min_max_YCoCg()
774 if (block[4 * i + 2] > maxcolor[2]) maxcolor[2] = block[4 * i + 2]; in get_min_max_YCoCg()
775 if (block[4 * i + 1] > maxcolor[1]) maxcolor[1] = block[4 * i + 1]; in get_min_max_YCoCg()
792 m2 = abs(maxcolor[2] - 128); in scale_YCoCg()
793 m3 = abs(maxcolor[1] - 128); in scale_YCoCg()
807 maxcolor[2] = (maxcolor[2] - 128) * scale + 128; in scale_YCoCg()
808 maxcolor[1] = (maxcolor[1] - 128) * scale + 128; in scale_YCoCg()
809 maxcolor[0] = (scale - 1) << 3; in scale_YCoCg()
871 c1 = maxcolor[1]; in select_diagonal_YCoCg()
878 maxcolor[1] = c1; in select_diagonal_YCoCg()
[all …]
/dports/security/afterglow/afterglow/src/perl/charts/
H A Dscatter.pl14 my $maxcolor;
24 if ($_[2]>$maxcolor) { $maxcolor = $_[2]; }
52 my $color = int 256 - ($color[$i] * ( 256 / $maxcolor )) ;
/dports/databases/grass7/grass-7.8.6/raster/r.out.gdal/
H A Dexport_band.c263 int maxcolor, i; in export_band() local
271 maxcolor = max; in export_band()
274 maxcolor = (int)ceil(dfCellMax); in export_band()
276 if (maxcolor > GRASS_MAX_COLORS) { in export_band()
277 maxcolor = GRASS_MAX_COLORS; in export_band()
279 maxcolor); in export_band()
284 maxcolor = max; in export_band()
287 maxcolor = GRASS_MAX_COLORS; in export_band()
289 maxcolor); in export_band()
296 dfCellMax, maxcolor); in export_band()
[all …]
/dports/graphics/py-pyx/PyX-0.15/pyx/
H A Dcolor.py466 def lineargradient_cmyk(mincolor, maxcolor): argument
467 return functiongradient_cmyk(lambda x:maxcolor.c * x + mincolor.c * (1-x),
472 def lineargradient_gray(mincolor, maxcolor): argument
475 def lineargradient_hsb(mincolor, maxcolor): argument
476 return functiongradient_hsb(lambda x:maxcolor.h * x + mincolor.h * (1-x),
477 lambda x:maxcolor.s * x + mincolor.s * (1-x),
478 lambda x:maxcolor.b * x + mincolor.b * (1-x))
480 def lineargradient_rgb(mincolor, maxcolor): argument
481 return functiongradient_rgb(lambda x:maxcolor.r * x + mincolor.r * (1-x),
482 lambda x:maxcolor.g * x + mincolor.g * (1-x),
[all …]
/dports/cad/ngspice_rework/ngspice-35/src/frontend/
H A Dpostsc.c106 static int maxcolor = 2; variable
120 maxcolor = NUMELEMS(colors); in PS_Init()
144 dispdev->numcolors = maxcolor; in PS_Init()
148 if (settxcolor > maxcolor || settxcolor < 0) { in PS_Init()
150 fprintf(stderr, " Maximum for hcopypstxcolor is %d\n\n", maxcolor - 1); in PS_Init()
155 if (setbgcolor > maxcolor || setbgcolor < 0) { in PS_Init()
157 fprintf(stderr, " Maximum for hcopypscolor is %d\n", maxcolor - 1); in PS_Init()
528 if (colorid < 0 || colorid >= maxcolor) { in PS_SelectColor()
/dports/devel/upp/upp/bazaar/plugin/gdal/frmts/grass/
H A Dgrass57dataset.cpp317 int maxcolor; in GRASSRasterBand() local
324 maxcolor = max; in GRASSRasterBand()
326 maxcolor = (int) ceil ( dfCellMax ); in GRASSRasterBand()
328 if ( maxcolor > GRASS_MAX_COLORS ) { in GRASSRasterBand()
329 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
330 CPLDebug( "GRASS", "Too many values, color table cut to %d entries.", maxcolor ); in GRASSRasterBand()
334 maxcolor = max; in GRASSRasterBand()
336 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
337 CPLDebug( "GRASS", "Too many values, color table set to %d entries.", maxcolor ); in GRASSRasterBand()
342 for( int iColor = 0; iColor <= maxcolor; iColor++ ) in GRASSRasterBand()
/dports/graphics/py-gdal/gdal-3.3.3/frmts/grass/
H A Dgrass.cpp279 int maxcolor; in GRASSRasterBand() local
286 maxcolor = max; in GRASSRasterBand()
288 maxcolor = (int) ceil ( dfCellMax ); in GRASSRasterBand()
290 if ( maxcolor > GRASS_MAX_COLORS ) { in GRASSRasterBand()
291 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
292 CPLDebug( "GRASS", "Too many values, color table cut to %d entries.", maxcolor ); in GRASSRasterBand()
296 maxcolor = max; in GRASSRasterBand()
298 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
299 CPLDebug( "GRASS", "Too many values, color table set to %d entries.", maxcolor ); in GRASSRasterBand()
304 for( int iColor = 0; iColor <= maxcolor; iColor++ ) in GRASSRasterBand()
/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/frmts/grass/
H A Dgrass.cpp279 int maxcolor; in GRASSRasterBand() local
286 maxcolor = max; in GRASSRasterBand()
288 maxcolor = (int) ceil ( dfCellMax ); in GRASSRasterBand()
290 if ( maxcolor > GRASS_MAX_COLORS ) { in GRASSRasterBand()
291 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
292 CPLDebug( "GRASS", "Too many values, color table cut to %d entries.", maxcolor ); in GRASSRasterBand()
296 maxcolor = max; in GRASSRasterBand()
298 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
299 CPLDebug( "GRASS", "Too many values, color table set to %d entries.", maxcolor ); in GRASSRasterBand()
304 for( int iColor = 0; iColor <= maxcolor; iColor++ ) in GRASSRasterBand()
/dports/graphics/gdal/gdal-3.3.3/frmts/grass/
H A Dgrass.cpp279 int maxcolor; in GRASSRasterBand() local
286 maxcolor = max; in GRASSRasterBand()
288 maxcolor = (int) ceil ( dfCellMax ); in GRASSRasterBand()
290 if ( maxcolor > GRASS_MAX_COLORS ) { in GRASSRasterBand()
291 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
292 CPLDebug( "GRASS", "Too many values, color table cut to %d entries.", maxcolor ); in GRASSRasterBand()
296 maxcolor = max; in GRASSRasterBand()
298 maxcolor = GRASS_MAX_COLORS; in GRASSRasterBand()
299 CPLDebug( "GRASS", "Too many values, color table set to %d entries.", maxcolor ); in GRASSRasterBand()
304 for( int iColor = 0; iColor <= maxcolor; iColor++ ) in GRASSRasterBand()
/dports/graphics/py-pyx/PyX-0.15/manual/
H A Dcolor.rst92 .. function:: lineargradient_cmyk(mincolor, maxcolor)
93 .. function:: lineargradient_gray(mincolor, maxcolor)
94 .. function:: lineargradient_hsb(mincolor, maxcolor)
95 .. function:: lineargradient_rgb(mincolor, maxcolor)
102 *mincolor* and *maxcolor* must be colors of the corresponding color class.
/dports/biology/gperiodic/gperiodic-3.0.3/
H A Dgperiodic.c212 int criterion2scale(double r, int maxcolor) in criterion2scale() argument
217 result = 1 + (maxcolor-1) * r; in criterion2scale()
218 if (result >= maxcolor) result = maxcolor - 1; in criterion2scale()
232 c = cs1->maxcolor; in colorize_element()
238 c = cs2->maxcolor; in colorize_element()
246 c = cs3->maxcolor; in colorize_element()
/dports/graphics/xfractint/xfractint-20.04p16/common/
H A Dmiscovl.c117 int maxcolor; in make_batch_file() local
139 maxcolor = colors; in make_batch_file()
147 --maxcolor; in make_batch_file()
151 maxcolor = inside; in make_batch_file()
153 maxcolor = outside; in make_batch_file()
156 if (decomp[0] > maxcolor) in make_batch_file()
157 maxcolor = decomp[0] - 1; in make_batch_file()
160 if (++maxcolor > 256) in make_batch_file()
161 maxcolor = 256; in make_batch_file()
348 maxcolor = 256; in make_batch_file()
[all …]
/dports/net-mgmt/xymon-server/xymon-4.3.30/xymond/client/
H A Dzos.c545 int maxcolor = COL_GREEN; in zos_maxuser_report() local
593 if (maxcolor < COL_RED) maxcolor = COL_RED; in zos_maxuser_report()
597 if (maxcolor < COL_YELLOW) maxcolor = COL_YELLOW; in zos_maxuser_report()
604 init_status(maxcolor); in zos_maxuser_report()
606 commafy(hostname), colorname(maxcolor), in zos_maxuser_report()
/dports/net-mgmt/xymon-client/xymon-4.3.30/xymond/client/
H A Dzos.c545 int maxcolor = COL_GREEN; in zos_maxuser_report() local
593 if (maxcolor < COL_RED) maxcolor = COL_RED; in zos_maxuser_report()
597 if (maxcolor < COL_YELLOW) maxcolor = COL_YELLOW; in zos_maxuser_report()
604 init_status(maxcolor); in zos_maxuser_report()
606 commafy(hostname), colorname(maxcolor), in zos_maxuser_report()
/dports/graphics/leptonica/leptonica-1.76.0/prog/
H A Dmaptest.c229 l_uint32 val32, maxcolor; in DisplayMapRGBHistogram() local
237 maxcolor = 0; in DisplayMapRGBHistogram()
244 maxcolor = n->key.utype; in DisplayMapRGBHistogram()
251 fprintf(stderr, " Color %x has count %d\n", maxcolor, maxn); in DisplayMapRGBHistogram()
252 maxn2 = amapGetCountForColor(m, maxcolor); in DisplayMapRGBHistogram()
/dports/comms/linrad/linrad-04.02/
H A Dgifsave.c811 long maxcolor; in GIF_SetColor() local
814 maxcolor = (1L << BitsPrPrimColor) - 1L; in GIF_SetColor()
816 *p++ = (Byte) ((red * 255L) / maxcolor); in GIF_SetColor()
817 *p++ = (Byte) ((green * 255L) / maxcolor); in GIF_SetColor()
818 *p++ = (Byte) ((blue * 255L) / maxcolor); in GIF_SetColor()
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Dxlyap.c328 if (st->maxcolor > MAXCOLOR) in complyap()
520 if (st->numcolors > st->maxcolor) in init_data()
521 st->numcolors = st->maxcolor; in init_data()
560 st->ncolors = st->maxcolor; in init_color()
992 if (st->maxcolor > MAXCOLOR) in sendpoint()
1356 if (st->maxcolor > MAXCOLOR) in BufferPoint()
1363 else if (color >= st->maxcolor) in BufferPoint()
1364 color = st->maxcolor - 1; in BufferPoint()
1509 st->maxcolor=16; in do_defaults()
1518 st->maxcolor=256; in do_defaults()
[all …]

12345678910>>...13