FastLED 3.9.15
Loading...
Searching...
No Matches
sample.cpp.hpp File Reference
#include "fl/gfx/sample.h"
#include "fl/math/math.h"
#include "fl/math/xymap.h"
#include "crgb.h"
+ Include dependency graph for sample.cpp.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

CRGB fl::sample (const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode=SampleMode::SAMPLE_BILINEAR)
 Sample a pixel from a 2D CRGB grid at floating-point coordinates.
 
CRGB fl::sampleBilinear (const CRGB *grid, const XYMap &xyMap, float x, float y)
 Bilinear interpolation sample from a 2D CRGB grid.
 
CRGB fl::sampleNearest (const CRGB *grid, const XYMap &xyMap, float x, float y)
 Nearest-neighbor sample from a 2D CRGB grid.