constixel
|
Fluent API for drawing lines. More...
#include <constixel.hpp>
Public Member Functions | |
constexpr | line (image_type &image, int32_t x0_, int32_t y0_, int32_t x1_, int32_t y1_) |
Construct a line shape. | |
constexpr line & | stroke (uint8_t col, int32_t stroke_width=1) |
Draw the line. | |
Fluent API for drawing lines.
Provides a chainable interface for drawing stroked lines.
|
inlineconstexpr |
Construct a line shape.
image | Target image to draw on |
x0_ | X coordinate of start point |
y0_ | Y coordinate of start point |
x1_ | X coordinate of end point |
y1_ | Y coordinate of end point |
|
inlineconstexpr |
Draw the line.
col | Color value |
stroke_width | Width of the stroke (default: 1) |