<< Generate Tikz Strings Generate Tikz Strings add_environment_beginning >>

xs2tikz >> xs2tikz > Generate Tikz Strings > add_color_defines

add_color_defines

Generate color definition strings

Syntax

tikzStrings = add_color_defines(attributes)

Parameters

attributes:

struct containing graphical elements

tikzStrings:

column vector containing generated strings

Description

Grabs the color names from the attributes struct and translates it to RGB triples. The color definition is added in the form \definecolor{rgb}{red val, green val, blue val}.

Examples

choose_plot_example("simple");
attributes = gather_graphic_attributes();
colorString = add_color_defines(attributes);

Authors


Report an issue
<< Generate Tikz Strings Generate Tikz Strings add_environment_beginning >>