|
constexpr | circle_aa (image_type &image, int32_t cx_, int32_t cy_, int32_t r_) |
| Construct an anti-aliased circle shape.
|
|
constexpr circle_aa & | fill (uint8_t col) |
| Fill the circle with a solid color.
|
|
template<typename shader_func>
requires std::is_invocable_r_v<std::array<float, 4>, shader_func, float, float, int32_t, int32_t> |
constexpr auto | fill_shader (const shader_func &shader) -> circle_aa & |
| Fill the circle using a shader function.
|
|
constexpr circle_aa & | stroke (uint8_t col, int32_t stroke_width=1) |
| Draw the circle outline.
|
|
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
class constixel::shapes::circle_aa< T, W, H, GRAYSCALE, USE_SPAN >
Fluent API for drawing anti-aliased circles.
Provides a chainable interface for drawing filled and stroked circles 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 circle shape.
- Parameters
-
image | Target image to draw on |
cx_ | X coordinate of center |
cy_ | Y coordinate of center |
r_ | Radius of circle |
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
template<typename shader_func>
requires std::is_invocable_r_v<std::array<float, 4>, shader_func, float, float, int32_t, int32_t>
Fill the circle using a shader function.
- Parameters
-
shader | Function that returns RGBA values based on normalized coordinates |
- Returns
- Reference to this circle for chaining