Functions
core/vgui/vgui_color_text.h File Reference

Converts a string naming a colour to the RGB values. More...

#include <vcl_string.h>

Go to the source code of this file.

Functions

vcl_string text_to_color (const vcl_string &)
 Convert a string naming a colour to a string of the RGB values.
float red_value (const vcl_string &)
 Given a string naming a colour, return its red value.
float green_value (const vcl_string &)
 Given a string naming a colour, return its green value.
float blue_value (const vcl_string &)
 Given a string naming a colour, return its blue value.

Detailed Description

Converts a string naming a colour to the RGB values.

Author:
K.Y.McGaul

e.g. "blue" is converted to "0.000 0.000 1.000".

    Modifications
     K.Y.McGaul     25-FEB-2000   Initial version
     26-APR-2002  K.Y.McGaul - Added doxygen style comments.
   

Definition in file vgui_color_text.h.


Function Documentation

float blue_value ( const vcl_string &  )

Given a string naming a colour, return its blue value.

Definition at line 92 of file vgui_color_text.cxx.

float green_value ( const vcl_string &  )

Given a string naming a colour, return its green value.

Definition at line 84 of file vgui_color_text.cxx.

float red_value ( const vcl_string &  )

Given a string naming a colour, return its red value.

Definition at line 76 of file vgui_color_text.cxx.

vcl_string text_to_color ( const vcl_string &  )

Convert a string naming a colour to a string of the RGB values.

Definition at line 49 of file vgui_color_text.cxx.