Skip to content

Commit

Permalink
animation pattern name changes, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw01 committed Aug 27, 2021
1 parent 0bb4918 commit 00b09ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Returns the instantaneous value of a 1Hz triangle wave at time `t`.
Returns the instantaneous value of a 1Hz pulse wave of the specified duty cycle (range 0 to 1) at time `t`.

##### `plasma_sines_octave(x, y, t, octaves, lacunarity, persistence)`
Custom optimized "plasma" implementation that returns a sum of several octaves of sinusoid-based waveforms creating a non-random noise effect. This creates more detailed and better looking plasma effects than simpler implementations. For each successive octave, the frequency (how fast the wave changes with space and time) is multiplied by `lacunarity`, and the amplitude is multiplied by `persistence`. `octaves` must be an integer. See the usage notes below.
Custom optimized "plasma" implementation that returns a sum of several octaves of sinusoid-based waveforms creating a non-random noise effect. Essentially fractal noise, but using sinusoid functions as a basis instead of pseudorandom noise. This creates more detailed and better looking plasma effects than simpler implementations. For each successive octave, the frequency (how fast the wave changes with space and time) is multiplied by `lacunarity`, and the amplitude is multiplied by `persistence`. `octaves` must be an integer. See the usage notes below.

##### `plasma_sines(x, y, t, coeff_x, coeff_y, coeff_x_y, coeff_mag_xy)`
Basic optimized function for creating RGB plasma animations (see [https://www.bidouille.org/prog/plasma](https://www.bidouille.org/prog/plasma)). Returns `sin((x + t) * coeff_x) + sin((y + t) * coeff_y) + sin((x + y + t) * coeff_x_y) + sin((sqrt(x * x + y * y) + t) * coeff_mag_xy)`. Not recommended unless you want it, `plasma_sines_octave` generally looks better.
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@
- [x] palette based - plasma
- [ ] DMX
- [ ] pixel mapping

- [ ] render animations to images for readme

sudo ledcontrol --led_count 150 --led_pixel_order GRBW --led_color_correction "#FFA8FF"
8 changes: 4 additions & 4 deletions ledcontrol/animationpatterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def pattern(t, dt, x, y, prev_state):
'''
},
1: {
'name': 'Static Gradient',
'name': 'Static Gradient 1D',
'primary_speed': 0.0,
'primary_scale': 1.0,
'source': '''
Expand All @@ -37,7 +37,7 @@ def pattern(t, dt, x, y, prev_state):
'''
},
2: {
'name': 'Static Gradient Mirrored',
'name': 'Static Gradient Mirrored 1D',
'primary_speed': 0.0,
'primary_scale': 1.0,
'source': '''
Expand Down Expand Up @@ -212,7 +212,7 @@ def pattern(t, dt, x, y, prev_state):
'''
},
180: {
'name': 'Palette Octave Plasma 2D',
'name': 'Palette Fractal Plasma 2D',
'primary_speed': 0.2,
'primary_scale': 1.0,
'source': '''
Expand Down Expand Up @@ -309,7 +309,7 @@ def pattern(t, dt, x, y, prev_state):
'''
},
350: {
'name': 'RGB Octave Plasma (Fire Sines) 2D',
'name': 'RGB Fractal Plasma (Fire Sines) 2D',
'primary_speed': 0.2,
'primary_scale': 1.0,
'source': '''
Expand Down

0 comments on commit 00b09ef

Please sign in to comment.