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/AnimartrixRing/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.
11
fl::ScreenMap
makeRingScreenMap
(
int
numLeds,
int
gridWidth,
int
gridHeight,
12
float
diameter = 0.15f);
makeRingScreenMap
fl::ScreenMap makeRingScreenMap(int numLeds, int gridWidth, int gridHeight, float diameter=0.15f)
Definition
ring_screenmap.cpp:14
fl::ScreenMap
Definition
screenmap.h:39
screenmap.h
examples
MoodRing
ring_screenmap.h
Generated on Sun Oct 4 2026 23:08:59 for FastLED by
1.13.2