constixel
Loading...
Searching...
No Matches
constixel::draw_line Struct Reference

#include <constixel.hpp>

Public Attributes

int32_t x0 = 0
 
int32_t y0 = 0
 
int32_t x1 = 0
 
int32_t y1 = 0
 
uint8_t col = color::WHITE
 
float sw = 1
 

Detailed Description

A struct which can be passed to: draw_line(), draw_line_aa().

Member Data Documentation

◆ col

uint8_t constixel::draw_line::col = color::WHITE

Color palette index to use.

◆ sw

float constixel::draw_line::sw = 1

Width of the stroke in pixels.

◆ x0

int32_t constixel::draw_line::x0 = 0

First X coordinate in pixels.

◆ x1

int32_t constixel::draw_line::x1 = 0

Second X coordinate in pixels.

◆ y0

int32_t constixel::draw_line::y0 = 0

First Y coordinate in pixels.

◆ y1

int32_t constixel::draw_line::y1 = 0

Second Y coordinate in pixels.


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