FastLED 3.9.15
Loading...
Searching...
No Matches

◆ at_subpixel()

Tile2x2_u8 fl::XYPathRenderer::at_subpixel ( float alpha)

Definition at line 24 of file xypath_renderer.cpp.

24 {
25 // 1) continuous point, in “pixel‐centers” coordinates [0.5 … W–0.5]
26 if (!mDrawBoundsSet) {
27 FASTLED_WARN("XYPathRenderer::at_subpixel: draw bounds not set");
28 return Tile2x2_u8();
29 }
30 vec2f xy = at(alpha);
31
32 // 1) shift back so whole‐pixels go 0…W–1, 0…H–1
33 xy.x -= 0.5f;
34 xy.y -= 0.5f;
35
36 return splat(xy);
37}
unsigned int xy(unsigned int x, unsigned int y)
vec2f at(float alpha)
Definition xypath.cpp:135
Tile2x2_u8 splat(vec2f xy)
"Splat" as in "splat pixel rendering" takes a pixel value in float x,y coordinates and "splats" it in...
Definition splat.cpp:14
vec2< float > vec2f
Definition geometry.h:318
#define FASTLED_WARN
Definition warn.h:7

References at(), FASTLED_WARN, mDrawBoundsSet, fl::splat(), and xy().

Referenced by rasterize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: