Current Version: 1.0.20
Project Name: csspp
Namespaces | Functions | Variables
color.cpp File Reference

Implementation of the CSS Preprocessor color class. More...

#include "csspp/lexer.h"
#include "csspp/exceptions.h"
#include <cmath>
#include <iomanip>
#include <iostream>
Include dependency graph for color.cpp:

Go to the source code of this file.


 The namespace of all the classes in the CSS Preprocessor.


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]))


color_table_t const csspp::anonymous_namespace{color.cpp}::color_names []

Detailed Description

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.