Commit Graph

680 Commits

Author SHA1 Message Date
Brandon502
192b4a8fb5 Merge remote-tracking branch 'upstream/mdev' into GoL-Fast 2024-11-13 22:05:18 -05:00
Brandon502
5d27e8f340 GoL - Minor Changes
Use defined(ARDUINO_ARCH_ESP32)
getNeighborIndexes loop changes
offsets use int8_t
change prevRows/Cols to uint16
2024-11-13 22:05:13 -05:00
Frank
c73ed486e9 effect bugfixes for width>255
* band-aid for ripple, matrix, crazy bee
* arc mapping fix for diameter > 255
* small speedup for "block" mapping
2024-11-13 23:57:53 +01:00
Frank
202255849f fix errors when width>255 or height>255
some effects still don't work when x y dimensions do not fit into 8bit
2024-11-13 23:06:27 +01:00
Brandon502
549380a2bf Game of Life Optimizations
Uses more memory to achieve much higher framerates on large setups. Neighbor counts are stored instead of constantly recalculated. CRC is no longer used for repeat detection so false positives are no longer possible.
2024-11-09 15:50:20 -05:00
Frank
d0f90d0dd2 effect FPS tinkering 2024-11-04 16:28:13 +01:00
Frank
f15bb83abb akemi small optimization
prevent that GEQ "bars" try to draw outside the panel area
2024-10-29 18:40:07 +01:00
Frank
9189329570 scrolling text improvement
better readability
- only add "shadow" pixels when overlay text is actually scrolling, or displayed value changes very often
2024-10-28 21:26:04 +01:00
Frank
3cd733d591 GEQ bugfix - bars one pixel too high when using drawLine 2024-10-28 17:28:42 +01:00
Frank
73b7fa7d35 bugfix: some effects stop progressing after brightness 0
alternative fix for https://github.com/Aircoookie/WLED/issues/4228
2024-10-27 16:38:05 +01:00
Frank
fe5eaed99c minor FX enhancements
scrolling text - FPS with 3 digitis
colored bursts - apply gamma correction  when fading
2024-10-24 17:24:17 +02:00
Frank
dbd8bef669 scrolling text: prevent flickering
always redraw background for each frame
2024-10-23 14:26:05 +02:00
Frank
a99a54c9fa cache SEGMENT
actually its just a minor speedup, at least with -O2
2024-10-20 01:06:18 +02:00
Frank
6fc207b801 julia effect additional options (experimental)
* limit drift, so we don't drift away too far
* added "show Center" = small crosshair
* added soft blur (faster) and strong blur (slower)
2024-10-17 13:29:10 +02:00
Frank
70ab62ed90 scrolling text #ERR displays WLED error code
experimental
2024-10-16 21:43:31 +02:00
Frank
e75fc4d457 fix holes in DNA effect (>32 pixel high segments)
avoid holes by using drawLine when there is a gap
2024-10-16 21:25:52 +02:00
Ewoud
33318dab25 Merge pull request #170 from MoonModules/license 2024-10-16 00:14:46 +02:00
Damian Schneider
4a3f102c25 Fix for Octopus on ESP32 C3
Apparently the C3 can not convert negative floats to uint8_t directly, casting it into an int first fixes it.
2024-10-15 21:21:08 +02:00
Frank
22b16ab542 Align all licensing statements with EUPL-1.2 2024-10-14 21:52:52 +02:00
Frank
bda6dedfa8 popcorn FX minor rework
* made effect time dependent (instead of framerate dependent)
* speed tuning
* add a small trail to prevent jumping dots and blank rows
2024-10-07 15:54:04 +02:00
Frank
5b1f3e1eba make all compilers happy
fixing CI build error
2024-10-07 13:35:31 +02:00
Frank
7740c7dc62 drip effect rework
* made effect time-defendant (instead of framerate dependent)
* made effect a bit slower
* fixed physics
* made dropping more random (avoids skipped rows)
* drop traces look better now
* made bounce more realistic
* prevent off-screen drawing
2024-10-07 13:14:50 +02:00
Frank
4fadcade93 fix for off-by-one error in Lissajous (float version) 2024-10-06 19:59:59 +02:00
Brandon502
ebd16f6be4 Snow Fall - Minor Changes 2024-10-02 18:12:03 -04:00
Brandon502
18e22f5b5f Merge remote-tracking branch 'upstream/mdev' into mdev 2024-10-02 17:43:15 -04:00
Will Tatam
16644f838a Remove stray commma from _data_FX_MODE_2DGAMEOFLIFE 2024-10-02 19:20:40 +01:00
Frank
b436a595ef bugfix for holes in 2D DNA Spiral
Holes were visible at height > 32. Root cause: "lerp8x8" seems to be inaccurate --> replaced by a simple linear calculation.
2024-10-02 17:09:29 +02:00
Frank
9ed787c086 colored burst effect bugfix (swapped XY dimensions)
fixing a bug where width and height got swapped (visible on non-square panels)
2024-09-30 18:54:32 +02:00
Frank
b0a7330a31 Akemi memory saver
lossless getPixelColor buffer is not needed for Akemi.
2024-09-30 17:35:14 +02:00
Frank
813b3705c1 Akemi bugfix for panel width > 32
due to a math accident, Akemi did not show proper GEQ bands in its hands when width>32.
2024-09-30 17:33:25 +02:00
Frank
7e9474e78c depricate sPC(float, float)
the function is already removed in upstream.
You can use wu_pixel() instead, which is much faster and more accurate.
2024-09-29 17:51:44 +02:00
Frank
b245112d2a some drawing speedups
* speedups for addPixelColorXY, fadePixelColorXY, fadeToBlackBy
2024-09-28 02:19:53 +02:00
Frank
3a506aded2 trying to keep scrolling text readable
the problem (partly solved) is that scrolling text does not erase any previous text, but simply paints pixels in addition.

* add a "shadow" area around each letter, which is explicitly painted black
* only possible when  Trail=0, and overlay option selected
2024-09-28 02:12:53 +02:00
Troy
7bb351b185 Minor updates to Paintbrush 2024-08-17 08:15:27 -04:00
Troy
324f3acd59 Merge branch 'MoonModules:mdev' into mdev 2024-08-17 00:58:29 -04:00
Will Tatam
b0b3e75556 Move getAudioData to static 2024-08-15 16:22:24 +01:00
Will Tatam
3b551a40f3 Remove repeating code to fetch audio data 2024-08-15 10:51:26 +01:00
Troy
340197fd91 Merge branch 'mdev' of https://github.com/troyhacks/WLED into mdev 2024-08-13 12:13:29 -04:00
Troy
38d30723a0 2D Audio Reactive Paintbrush Effect 2024-08-13 12:13:14 -04:00
Frank
a44aa92c75 playing with Fire2012
* speedup: add functions to only blur rows or columns (50% faster)

* fire2012: tinkering with bur options. Vertical blur only when slider < 64 (faster); extra blur for  slider values >192 (bush burn)
2024-08-09 12:55:04 +02:00
Blaž Kristan
89412b999d Merge pull request #4078 from apanteleev/fire-blur-control
Add a parameter for blur amount in the Fire 2012 effect
2024-08-09 12:19:31 +02:00
Frank
d00b3147b4 Waverly: better slider names
Slider names were misleading.
First slider: fade speed (low values means longer hold times)
Second slider: signal gain (i.e. amplification)
2024-08-08 22:28:14 +02:00
Frank
28db9bfcfd waverly effect speedup
* faster math
* limit height to visible area
2024-08-08 22:03:49 +02:00
Frank
42919f9daf blob effect improvements, and a dirty hack for HUB75 double buffer
* mode_2Dfloatingblobs() improvements for large panels
* Segment::fillCircle() speed optimizations
* HUB75 hack (disabled by default): skip first fill(BLACK) when using double buffering (as the buffer gets cleared after each frame)
2024-08-06 15:53:46 +02:00
Troy
9ee4165dad Freqmatrix stop identical first pixel/line 2024-08-05 16:37:49 -04:00
Frank
6505e04cbf minor effect improvements
* 2DBlackHole: improved accuracy
* 2Dfloatingblobs: draw anti-aliased blobs when "blur" slider = 1
* FX framework: un-clutter and optimize "XY()"
2024-08-05 17:09:50 +02:00
Brandon502
6365b1abb5 Merge remote-tracking branch 'upstream/mdev' into mdev 2024-07-24 14:09:07 -04:00
Brandon502
33accd8671 GoL - Optimizations
Uncapped update option if speed set to 255.
2024-07-21 15:40:24 -04:00
Brandon502
9500f7badf Snow Fall - Drawing change
Fixes snow disappearing due to auto brightness limiter (?)  by redrawing stuck snow.
2024-07-17 18:04:51 -04:00
Brandon502
67d777f474 2D Effect Snow Fall Added 2024-07-17 14:33:23 -04:00