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

Function screen

src/fl/fx/2d/animartrix_detail/engine_core.h:155–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153inline float add(float &a, float &b) { return a + b; }
154
155inline float screen(float &a, float &b) {
156 return (1 - (1 - a / 255.f) * (1 - b / 255.f)) * 255.f;
157}
158
159inline float colordodge(float &a, float &b) { return (a / (255.f - b)) * 255.f; }
160

Callers 1

screenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected