rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
gfx_subpixel.h
Go to the documentation of this file.
1
20#pragma once
21
22#include "gfx.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
37void gfx_fill_circle_aaf(gfx_canvas_t *c, float cx, float cy, float r,
38 gfx_color_t col);
39
52void gfx_capsule_aaf(gfx_canvas_t *c, float ax, float ay, float bx, float by,
53 float thickness, gfx_color_t col);
54
75void gfx_ring_aaf(gfx_canvas_t *c, float cx, float cy, float r,
76 float thickness, float a0_deg, float a1_deg,
77 gfx_color_t col, gfx_color_t into, float fade_deg);
78
79#ifdef __cplusplus
80}
81#endif
void gfx_ring_aaf(gfx_canvas_t *c, float cx, float cy, float r, float thickness, float a0_deg, float a1_deg, gfx_color_t col, gfx_color_t into, float fade_deg)
A ring, or an arc of one, solved per pixel from its distance and direction to the centre.
Definition gfx.c:1052
void gfx_capsule_aaf(gfx_canvas_t *c, float ax, float ay, float bx, float by, float thickness, gfx_color_t col)
A capsule, a thick line with round ends, from (ax, ay) to (bx, by), anti-aliased from each pixel's di...
Definition gfx.c:916
void gfx_fill_circle_aaf(gfx_canvas_t *c, float cx, float cy, float r, gfx_color_t col)
A disc of radius r centred on (cx, cy), anti-aliased from each pixel's distance to the centre.
Definition gfx.c:824
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
Definition gfx.h:129