MCPcopy Create free account
hub / github.com/MapServer/MapServer / writeColorRange

Function writeColorRange

mapfile.c:632–636  ·  view source on GitHub ↗

todo: deal with alpha's... */

Source from the content-addressed store, hash-verified

630
631/* todo: deal with alpha's... */
632static void writeColorRange(FILE *stream, int indent, const char *name, colorObj *mincolor, colorObj *maxcolor) {
633 if(!MS_VALID_COLOR(*mincolor) || !MS_VALID_COLOR(*maxcolor)) return;
634 writeIndent(stream, ++indent);
635 fprintf(stream, "%s %d %d %d %d %d %d\n", name, mincolor->red, mincolor->green, mincolor->blue, maxcolor->red, maxcolor->green, maxcolor->blue);
636}
637
638/*
639** Initialize, load and free a single join

Callers 1

writeStyleFunction · 0.85

Calls 1

writeIndentFunction · 0.85

Tested by

no test coverage detected