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.hpp.

24 {
25 // 1) continuous point, in “pixel‐centers” coordinates [0.5 … W–0.5]
26 if (!mDrawBoundsSet) {
27 FL_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)
#define FL_WARN(X)
Definition log.h:276
vec2< float > vec2f
Definition geometry.h:333
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.hpp:14

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

Referenced by ~XYPathRenderer(), and rasterize().

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