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

Fluent API for drawing points. More...

#include <constixel.hpp>

Public Member Functions

constexpr point (image_type &image, int32_t x_, int32_t y_)
 Construct a point shape.
 
constexpr pointplot (uint8_t col)
 Plot the point with the specified color.
 

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

Fluent API for drawing points.

Provides a chainable interface for plotting individual pixels.

Constructor & Destructor Documentation

◆ point()

template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
constixel::shapes::point< T, W, H, GRAYSCALE, USE_SPAN >::point ( image_type & image,
int32_t x_,
int32_t y_ )
inlineconstexpr

Construct a point shape.

Parameters
imageTarget image to draw on
x_X coordinate of the point
y_Y coordinate of the point

Member Function Documentation

◆ plot()

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

Plot the point with the specified color.

Parameters
colColor value
Returns
Reference to this point for chaining

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