|
homog2d library
|
Holds drawing related code, independent of back-end library. More...
Classes | |
| struct | Color |
| Color type , see DrawParams. More... | |
| class | DrawParams |
| Draw parameters, independent of back-end library. More... | |
| class | Image |
| Opaque data structure, will hold the image type, depending on back-end library. This type is the one used in all the drawing functions. More... | |
| struct | SvgImage |
| A svg image as a wrapper around a string, see manual, "Drawing things" section. More... | |
Enumerations | |
| enum | PtStyle : uint8_t { PtStyle::Plus, PtStyle::Times, PtStyle::Star, PtStyle::Diam, PtStyle::Squ, PtStyle::Dot } |
| Point drawing style, see DrawParams. More... | |
Functions | |
| std::vector< img::Color > | genRandomColors (size_t nb, int minval=20, int maxval=250) |
Helper function, will generate a vector of nb random RGB colors. More... | |
| const char * | getString (PtStyle t) |
| std::ostream & | operator<< (std::ostream &f, const Image< SvgImage > &im) |
| Streaming operator (only defined for SVG) More... | |
Holds drawing related code, independent of back-end library.
|
strong |
Point drawing style, see DrawParams.
Demo: https://github.com/skramm/homog2d/blob/master/docs/homog2d_manual.md#drawing_params
| Enumerator | |
|---|---|
| Plus |
|
| Times |
|
| Star |
|
| Diam | diamond |
| Squ | square (new 20241101 !) |
| Dot | dot (circle) |
|
inline |
Helper function, will generate a vector of nb random RGB colors.
minval and minval+coeff 
|
inline |
1.8.13