constixel
Loading...
Searching...
No Matches
constixel::shapes::circle< T, W, H, GRAYSCALE, USE_SPAN > Class Template Reference

Fluent API for drawing circles. More...

#include <constixel.hpp>

Public Member Functions

constexpr circle (image_type &image, int32_t cx_, int32_t cy_, int32_t r_)
 Construct a circle shape.
 
constexpr circlefill (uint8_t col)
 Fill the circle with a solid color.
 
constexpr circlestroke (uint8_t col, int32_t stroke_width=1)
 Draw the circle outline.
 

Detailed Description

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< T, W, H, GRAYSCALE, USE_SPAN >

Fluent API for drawing circles.

Provides a chainable interface for drawing filled and stroked circles.

Constructor & Destructor Documentation

◆ circle()

template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
constixel::shapes::circle< T, W, H, GRAYSCALE, USE_SPAN >::circle ( image_type & image,
int32_t cx_,
int32_t cy_,
int32_t r_ )
inlineconstexpr

Construct a circle shape.

Parameters
imageTarget image to draw on
cx_X coordinate of center
cy_Y coordinate of center
r_Radius of circle

Member Function Documentation

◆ fill()

template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
circle & constixel::shapes::circle< T, W, H, GRAYSCALE, USE_SPAN >::fill ( uint8_t col)
inlineconstexpr

Fill the circle with a solid color.

Parameters
colColor value
Returns
Reference to this circle for chaining

◆ stroke()

template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
circle & constixel::shapes::circle< T, W, H, GRAYSCALE, USE_SPAN >::stroke ( uint8_t col,
int32_t stroke_width = 1 )
inlineconstexpr

Draw the circle outline.

Parameters
colColor value
stroke_widthWidth of the stroke (default: 1)
Returns
Reference to this circle for chaining

The documentation for this class was generated from the following file: