FastLED 3.10.8
Loading...
Searching...
No Matches

◆ at_subpixel()

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

Definition at line 25 of file xypath_renderer.cpp.hpp.

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

References at(), fl::FL_NO_EXCEPT, 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: