grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

named_colr.c File Reference
#include <grass/gis.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for named_colr.c:

Go to the source code of this file.

Functions

int G_color_values (const char *name, float *r, float *g, float *b)
 
const char * G_color_name (int n)
 

Variables

struct {
   const char *   name
 
   float   r
 
   float   g
 
   float   b
 
colors []
 

Function Documentation

◆ G_color_name()

const char * G_color_name ( int  n)

Definition at line 44 of file named_colr.c.

References colors, and NULL.

◆ G_color_values()

int G_color_values ( const char *  name,
float *  r,
float *  g,
float *  b 
)

Definition at line 29 of file named_colr.c.

References b, colors, g, name, and r.

Variable Documentation

◆ b

float b

Definition at line 8 of file named_colr.c.

Referenced by G_color_values().

◆ 

struct { ... } colors[]
Initial value:
= {
{"white", 1.00, 1.00, 1.00},
{"black", 0.00, 0.00, 0.00},
{"red", 1.00, 0.00, 0.00},
{"green", 0.00, 1.00, 0.00},
{"blue", 0.00, 0.00, 1.00},
{"yellow", 1.00, 1.00, 0.00},
{"magenta",1.00, 0.00, 1.00},
{"cyan", 0.00, 1.00, 1.00},
{"aqua", 0.00, 0.75, 0.75},
{"grey", 0.75, 0.75, 0.75},
{"gray", 0.75, 0.75, 0.75},
{"orange", 1.00, 0.50, 0.00},
{"brown", 0.75, 0.50, 0.25},
{"purple", 0.50, 0.00, 1.00},
{"violet", 0.50, 0.00, 1.00},
{"indigo", 0.00, 0.50, 1.00},
{"", 0.00, 0.00, 0.00}
}

Referenced by G_color_name(), and G_color_values().

◆ g

◆ name

const char* name

Definition at line 7 of file named_colr.c.

Referenced by add_entry(), AMI_sort(), cache_remove_elt(), cache_test_add(), cache_test_flush_fun(), cache_test_load_fun(), Cairo_set_font(), em_buffer< T, Key >::check_name(), em_buffer< T, Key >::cleanup(), COM_Set_font(), D_encoding(), D_font(), db_alloc_dirent_array(), db_d_add_column(), db_d_describe_table(), db_d_drop_index(), db_d_drop_table(), db_d_init_error(), db_describe_table(), db_dirent(), db_drop_index(), db_drop_table(), db_free_dirent_array(), db_get_table_column_by_name(), db_grant_on_table(), db_procedure_not_implemented(), db_read_dbmscap(), db_set_column_name(), db_set_index_column_name(), db_set_index_name(), db_set_index_table_name(), db_set_table_name(), db_start_driver(), DBFGetFieldIndex(), do_history(), driver_set(), error_handler_io(), file_name(), find_datah(), find_file(), find_file1(), font_exists(), font_init(), font_init_freetype(), fopen_cellhd_new(), fopen_cellhd_old(), fopen_histogram_new(), free_colorinfo(), free_fontcap(), G__find_etc(), G__get_list_of_mapsets(), G__location_path(), G__machine_name(), G__make_mapset_element_misc(), G__open(), G__open_misc(), G__remove(), G_color_rules_description_type(), G_color_rules_descriptions(), G_color_rules_options(), G_color_values(), G_compressor_number(), G_database_datum_name(), G_database_ellipse_name(), G_database_projection_name(), G_database_unit(), G_file_name(), G_file_name_misc(), G_file_name_tmp(), G_find_color_rule(), G_find_etc(), G_find_file(), G_find_file2(), G_find_file2_misc(), G_find_file_misc(), G_find_raster(), G_find_raster2(), G_find_raster3d(), G_find_vector(), G_find_vector2(), G_fopen_append(), G_fopen_append_misc(), G_fopen_modify(), G_fopen_modify_misc(), G_fopen_new(), G_fopen_new_misc(), G_fopen_old(), G_fopen_old_misc(), G_fully_qualified_name(), G_get_datum_by_name(), G_get_element_window(), G_get_ellipsoid_by_name(), G_get_spheroid_by_name(), G_getenv(), G_getenv2(), G_getenv_nofatal(), G_getenv_nofatal2(), G_has_raster3d_timestamp(), G_has_raster_timestamp(), G_has_vector_timestamp(), G_legal_filename(), G_list_color_rules(), G_list_color_rules_description_type(), G_myname(), G_name_is_fully_qualified(), G_open_new(), G_open_new_misc(), G_open_old(), G_open_old_misc(), G_open_update(), G_open_update_misc(), G_put_element_window(), G_putenv(), G_read_datum_table(), G_read_ellipsoid_table(), G_read_raster3d_timestamp(), G_read_raster_timestamp(), G_read_vector_timestamp(), G_remove(), G_remove_misc(), G_remove_raster3d_timestamp(), G_remove_raster_timestamp(), G_remove_vector_timestamp(), G_setenv(), G_setenv2(), G_setenv_nogisrc(), G_setenv_nogisrc2(), G_str_to_color(), G_tempfile_pid(), G_unqualified_name(), G_unsetenv(), G_unsetenv2(), G_whoami(), G_write_raster3d_timestamp(), G_write_raster_timestamp(), G_write_vector_timestamp(), get_colorinfo(), get_env(), get_paper(), get_ref(), em_buffer< T, Key >::get_stream(), em_buffer< T, Key >::get_stream_name(), GK_print_keys(), Gp_load_sites(), GPJ_get_datum_by_name(), GPJ_get_datum_params(), GPJ_get_datum_transform_by_name(), GPJ_get_default_datum_params_by_name(), GPJ_get_ellipsoid_by_name(), GPJ_osr_to_grass(), GPJ_set_csv_loc(), GS_draw_legend(), GS_write_ppm(), GS_write_tif(), GS_write_zoom(), gsd_put_legend(), gsds_findh(), gsds_newh(), gvl_file_newh(), Gvl_load_colors_data(), I_add_file_to_group_ref(), I_fopen_signature_file_new(), I_fopen_signature_file_old(), I_fopen_sigset_file_new(), I_fopen_sigset_file_old(), I_iclass_init_statistics(), I_iclass_statistics_get_name(), em_buffer< T, Key >::insert(), is_toy_font(), list_element(), load_rules_name(), M_find(), misc_read_line(), misc_write_line(), N_read_rast3d_to_array_3d(), N_read_rast_to_array_2d(), N_write_array_2d_to_rast(), N_write_array_3d_to_rast3d(), name2sql(), new_mapset(), Nviz_new_map_obj(), open_band_files(), open_new(), open_raster_new(), open_volfile(), parse_env(), parse_fontcap_entry(), em_buffer< T, Key >::print_stream_names(), em_buffer< T, Key >::put_stream(), Rast3d_cache_elt_ptr(), Rast3d_cache_flush(), Rast3d_cache_get_elt(), Rast3d_cache_hash_load_name(), Rast3d_cache_hash_name2index(), Rast3d_cache_hash_remove_name(), Rast3d_cache_load(), Rast3d_cache_lock(), Rast3d_cache_put_elt(), Rast3d_cache_remove_elt(), Rast3d_cache_unlock(), Rast3d_open_cell_new(), Rast3d_open_cell_old(), Rast3d_open_cell_old_no_header(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), Rast3d_read_cats(), Rast3d_read_colors(), Rast3d_read_history(), Rast3d_read_range(), Rast3d_read_region_map(), Rast3d_remove_color(), Rast3d_write_cats(), Rast3d_write_colors(), Rast3d_write_history(), Rast__check_fp_type(), Rast__mask_info(), Rast__open_null_write(), Rast__open_old(), Rast__quant_export(), Rast__quant_import(), Rast__read_colors(), Rast__remove_fp_range(), Rast_create_gdal_link(), Rast_get_cell_title(), Rast_get_cellhd(), Rast_get_gdal_link(), Rast_get_max_c_cat(), Rast_get_reclass(), Rast_get_vrt(), Rast_is_reclass(), Rast_is_reclassed_to(), Rast_make_colors(), Rast_make_fp_colors(), Rast_map_is_fp(), Rast_map_to_img_str(), Rast_map_type(), Rast_mask_info(), Rast_open_c_new(), Rast_open_c_new_uncompressed(), Rast_open_fp_new(), Rast_open_fp_new_uncompressed(), Rast_open_new(), Rast_open_new_uncompressed(), Rast_open_old(), Rast_put_cell_title(), Rast_put_cellhd(), Rast_put_reclass(), Rast_quantize_fp_map(), Rast_quantize_fp_map_range(), Rast_read_cats(), Rast_read_colors(), Rast_read_fp_range(), Rast_read_histogram(), Rast_read_history(), Rast_read_quant(), Rast_read_range(), Rast_read_rstats(), Rast_read_units(), Rast_read_vdatum(), Rast_read_vector_cats(), Rast_remove_colors(), Rast_remove_histogram(), Rast_round_fp_map(), Rast_short_history(), Rast_truncate_fp_map(), Rast_write_cats(), Rast_write_colors(), Rast_write_fp_range(), Rast_write_histogram(), Rast_write_histogram_cs(), Rast_write_history(), Rast_write_quant(), Rast_write_range(), Rast_write_rstats(), Rast_write_units(), Rast_write_vdatum(), Rast_write_vector_cats(), read_cats(), read_colors(), read_datum_table(), read_dblinks_pg(), read_ellipsoid_table(), read_fontmap(), read_timestamp(), ReplacementHeap< T, Compare >::ReplacementHeap(), em_buffer< T, Key >::reset(), S_read(), set_color(), set_env(), set_font_toy(), set_proj_share(), SimpleErrorMessage(), sqpNewColumnNode(), sync_and_close(), tgis_map_list_insert(), translate_or_add_color(), unlink_file(), unset_env(), V1_open_new_nat(), V1_open_new_ogr(), V1_open_new_pg(), Vect__open_old(), Vect_add_dblink(), Vect_check_dblink(), Vect_copy_table_by_cats(), Vect_get_finfo_layer_name(), Vect_get_proj_name(), Vect_map_add_dblink(), Vect_map_check_dblink(), Vect_open_new(), Vect_open_old(), Vect_open_old2(), Vect_open_old_head(), Vect_open_old_head2(), Vect_open_tmp_new(), Vect_open_tmp_old(), Vect_open_tmp_update(), Vect_open_update(), Vect_open_update2(), Vect_open_update_head(), Vect_read_colors(), Vect_remove_colors(), Vect_write_colors(), which_month(), write_cats(), write_timestamp(), writeRange(), and em_buffer< T, Key >::~em_buffer().

◆ r

float r

Definition at line 8 of file named_colr.c.

Referenced by G_color_values().