FastLED 3.10.6
Loading...
Searching...
No Matches
ring_screenmap.h
Go to the documentation of this file.
1// ring_screenmap.h - Circular ScreenMap that samples from a rectangular grid
2//
3// NOTE: a twin of this file lives in examples/MoodRing/ring_screenmap.h.
4// Examples cannot include across directories, so the file is duplicated.
5// Fix both, or neither.
6#pragma once
7
8#include "fl/math/screenmap.h"
9
10// Build a ScreenMap that places LEDs in a circle within a rectangular grid.
11fl::ScreenMap makeRingScreenMap(int numLeds, int gridWidth, int gridHeight,
12 float diameter = 0.15f);
fl::ScreenMap makeRingScreenMap(int numLeds, int gridWidth, int gridHeight, float diameter=0.15f)