MCPcopy Create free account
hub / github.com/FastLED/FastLED / MaxTile

Method MaxTile

src/fl/gfx/tile2x2.cpp.hpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111Tile2x2_u8 Tile2x2_u8::MaxTile(const Tile2x2_u8 &a, const Tile2x2_u8 &b) {
112 Tile2x2_u8 result;
113 for (int x = 0; x < 2; ++x) {
114 for (int y = 0; y < 2; ++y) {
115 result.at(x, y) = fl::max(a.at(x, y), b.at(x, y));
116 }
117 }
118 return result;
119}
120
121rect<u16> Tile2x2_u8::bounds() const {
122 vec2<u16> min = mOrigin;

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected