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

Function getSuperSample

examples/Wave/Wave.h:59–72  ·  view source on GitHub ↗

Wave simulation looks better when you render at a higher resolution then downscale the result to the display resolution.

Source from the content-addressed store, hash-verified

57// Wave simulation looks better when you render at a higher resolution then
58// downscale the result to the display resolution.
59fl::SuperSample getSuperSample() {
60 switch (int(superSample)) {
61 case 0:
62 return fl::SuperSample::SUPER_SAMPLE_NONE;
63 case 1:
64 return fl::SuperSample::SUPER_SAMPLE_2X;
65 case 2:
66 return fl::SuperSample::SUPER_SAMPLE_4X;
67 case 3:
68 return fl::SuperSample::SUPER_SAMPLE_8X;
69 default:
70 return fl::SuperSample::SUPER_SAMPLE_NONE;
71 }
72}
73
74void loop() {
75 // Allow the waveSimulator to respond to the current slider value each frame.

Callers 1

loopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected