template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
class constixel::shapes::line_aa< T, W, H, GRAYSCALE, USE_SPAN >
Fluent API for drawing anti-aliased lines.
Provides a chainable interface for drawing stroked lines with anti-aliasing.
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
Construct an anti-aliased line shape.
- Parameters
-
| 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 |
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
Draw the anti-aliased line.
- Parameters
-
| col | Color value |
| stroke_width | Width of the stroke (default: 1.0f) |
- Returns
- Reference to this line for chaining