29 std::string line_style =
"-";
30 std::string layer =
"alpha";
46 StyleProperties(
const Color& stroke_color,
const std::string& param1 =
"",
const std::string& param2 =
"");
55 StyleProperties(std::initializer_list<Color> colors,
const std::string& param1 =
"",
const std::string& param2 =
"");
77 std::set<std::string> line_styles={
"-",
"--",
"..",
"-.",
"-.."};
Color structure, in RGBA or HSVA format.
Definition codac2_Color.h:44
static Color black(float alpha=1.)
Black color.
Definition codac2_Color.h:162
static Color none()
Empty color (transparent white)
Definition codac2_Color.h:155
static std::set< std::string > available_line_styles()
Set of available line styles.
Definition codac2_StyleProperties.h:75
static StyleProperties inside()
Predefined "inside" style, dark gray edge and green fill.
static StyleProperties outside()
Predefined "outside" style, dark gray edge and cyan fill.
StyleProperties(std::initializer_list< Color > colors, const std::string ¶m1="", const std::string ¶m2="")
Constructor from a stroke and eventually a fill color, and two optional parameters.
StyleProperties()
Default constructor.
StyleProperties(const Color &stroke_color, const std::string ¶m1="", const std::string ¶m2="")
Constructor from a stroke color, and two optional parameters.
static StyleProperties boundary()
Predefined "boundary" style, dark gray edge and yellow fill.