color_str.c File Reference

#include "string.h"
#include <grass/gis.h>
#include <grass/colors.h>

Include dependency graph for color_str.c:

Go to the source code of this file.

Functions

int G_str_to_color (const char *str, int *red, int *green, int *blue)

Variables

struct color_rgb standard_colors_rgb [MAX_COLOR_NUM+1]
struct color_name standard_color_names [MAX_COLOR_NAMES]


Function Documentation

int G_str_to_color ( const char *  str,
int *  red,
int *  green,
int *  blue 
)


Variable Documentation

struct color_name standard_color_names[MAX_COLOR_NAMES]

Initial value:

{
    {"black",   BLACK},
    {"red",     RED},
    {"green",   GREEN},
    {"blue",    BLUE},
    {"yellow",  YELLOW},
    {"cyan",    CYAN},
    {"magenta", MAGENTA},
    {"white",   WHITE},
    {"grey",    GREY},
    {"gray",    GRAY},
    {"orange",  ORANGE},
    {"aqua",    AQUA},
    {"indigo",  INDIGO},
    {"violet",  VIOLET},
    {"purple",  PURPLE},
    {"brown",   BROWN}
}

Definition at line 26 of file color_str.c.

Referenced by G_str_to_color().

struct color_rgb standard_colors_rgb[MAX_COLOR_NUM+1]

Initial value:

{
  {  0,  0,  0}, 
  {  0,  0,  0}, 
  {255,  0,  0}, 
  {  0,255,  0}, 
  {  0,  0,255}, 
  {255,255,  0}, 
  {  0,255,255}, 
  {255,  0,255}, 
  {255,255,255}, 
  {128,128,128}, 
  {255,128,  0}, 
  {100,128,255}, 
  {  0,128,255}, 
  {128,  0,255}, 
  {180, 77, 25}  
}

Definition at line 6 of file color_str.c.

Referenced by G_str_to_color().


Generated on Sun Apr 6 17:32:17 2008 for GRASS by  doxygen 1.5.5