Definition at line 31 of file xypath_renderer.cpp.
31 {
32
34 FASTLED_WARN(
"XYPathRenderer::at_subpixel: draw bounds not set");
35 return Tile2x2_u8();
36 }
38
39
40 float x =
xy.x - 0.5f;
41 float y =
xy.y - 0.5f;
42
43
44 int cx =
static_cast<int>(floorf(
x));
45 int cy =
static_cast<int>(floorf(
y));
46
47
50
51
52 float w_ll = (1 - fx) * (1 - fy);
53 float w_lr = fx * (1 - fy);
54 float w_ul = (1 - fx) * fy;
55 float w_ur = fx * fy;
56
57
58 Tile2x2_u8 out(vec2<int>(cx, cy));
63
64 return out;
65}
unsigned int xy(unsigned int x, unsigned int y)
uint8_t to_uint8(float f)
References at(), FASTLED_WARN, fl::Tile2x2_u8::lower_left(), fl::Tile2x2_u8::lower_right(), mDrawBoundsSet, fl::Tile2x2_u8::upper_left(), fl::Tile2x2_u8::upper_right(), x, xy(), and y.
Referenced by rasterize().