| 153 | } |
| 154 | |
| 155 | CRGB FlowFieldFloat::rainbow(float t, float speed, float phase) { |
| 156 | float hue = fmodPos(t * speed + phase, 1.0f); |
| 157 | CHSV hsv((u8)(hue * 255.0f), 255, 255); |
| 158 | CRGB rgb; |
| 159 | hsv2rgb_rainbow(hsv, rgb); |
| 160 | return rgb; |
| 161 | } |
| 162 | |
| 163 | void FlowFieldFloat::drawDot(float cx, float cy, float diam, |
| 164 | u8 cr, u8 cg, u8 cb) { |