Implementation of the CSS Preprocessor color class. More...
#include "csspp/lexer.h"
#include "csspp/exception.h"
#include <cmath>
#include <iomanip>
#include <iostream>
#include <snapdev/poison.h>
Go to the source code of this file.
Namespaces | |
namespace | csspp |
The namespace of all the classes in the CSS Preprocessor. | |
namespace | csspp::anonymous_namespace{color.cpp} |
Functions | |
byte_component_t | csspp::anonymous_namespace{color.cpp}::color_component_to_byte (color_component_t c) |
size_t const | csspp::anonymous_namespace{color.cpp}::color_names_size (sizeof(color_names)/sizeof(color_names[0])) |
Variables | |
color_table_t const | csspp::anonymous_namespace{color.cpp}::color_names [] |
The CSS Preprocessor works on colors using the color class.
A node that represents a color will generally be composed of one or more tokens. In the end, it can transformed in one 32 bit value representing the RGB and Alpha channels values from 0 to 255.
The class also understands names and is able to convert a color into in string as small as possible (i.e. compress colors.)
Definition in file color.cpp.
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.