Copy Segment FX (#4124)

* Added FX to copy a segment in 1D or 2D

- copies the source segment
- brightness of segment is relative to source segment
- optionally shifts the color hue, saturation and brightness
- invert, transpose, mirror work
- if source or targets do not match in size, smallest size is copied
- unused pixels fade to black (allows overlapping segments)
- if invalid source ID is set, segment just fades to black
- added a rgb2hsv conversion function as the fastled variant is inaccurate and buggy
- 1D to 2D and vice versa are supported
This commit is contained in:
Damian Schneider
2025-07-12 07:40:18 +02:00
committed by GitHub
parent 8bcd4550f8
commit b7bfd6fc67
4 changed files with 71 additions and 0 deletions

1
wled00/FX.h Executable file → Normal file
View File

@@ -228,6 +228,7 @@ extern byte realtimeMode; // used in getMappedPixelIndex()
#define FX_MODE_LAKE 75
#define FX_MODE_METEOR 76
//#define FX_MODE_METEOR_SMOOTH 77 // replaced by Meteor
#define FX_MODE_COPY 77
#define FX_MODE_RAILWAY 78
#define FX_MODE_RIPPLE 79
#define FX_MODE_TWINKLEFOX 80