Antialiased line segment with a dash pattern.
<insightdock/image_buffer.h>
void
draw_dashed_line(
float x0,
float y0,
float x1,
float y1,
float width,
Color const& color,
std::vector<float> const& dash);
| Name | Description |
|---|---|
| dash | Alternating on/off lengths in pixels (e.g. {6,4}). Empty means solid, same as draw_line. |
| color | RGBA color with 8-bit per channel. |
| dash | A standard container which offers fixed time access to individual elements in any order. |