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

Method fillInputSurface

src/fl/gfx/corkscrew.cpp.hpp:311–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void Corkscrew::fillInputSurface(const CRGB& color) {
312 auto target_surface = getOrCreateInputSurface();
313 for (fl::size i = 0; i < target_surface->size(); ++i) {
314 target_surface->span()[i] = color;
315 }
316}
317
318void Corkscrew::draw(bool use_multi_sampling) {
319 // The draw method should map from the rectangular surface to the LED pixel data

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 2

sizeMethod · 0.45
spanMethod · 0.45

Tested by

no test coverage detected