Skip to content

Commit

Permalink
prepare next release
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw01 committed Aug 31, 2021
1 parent fd6a4fc commit e407865
Show file tree
Hide file tree
Showing 59 changed files with 39 additions and 69 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* In-browser code editor and color palette editor make creating and modifying animations easy
* Large selection of built-in animations and color palettes means you don't have to write any code
* Works with cheap and readily available WS281x and SK6812 LED strips and strings
* Supports pixel mapping for arbitrary 2D and 3D LED arrangements (matrix displays and LED cubes)
* Supports pixel mapping for arbitrary 2D and 3D LED arrangements
* Seamlessly supports HSV-to-RGBW and RGB-to-RGBW conversion for RGBW LED strips
* Supports networked E1.31 sACN DMX control for music visualization through [LedFx](https://github.com/LedFx/LedFx)

Expand Down Expand Up @@ -101,7 +101,7 @@ optional arguments:
```

### Built-In Animation Patterns
Image and animated GIF previews of all built-in animations can be seen at [patterns.md](patterns).
Animated GIF previews of all built-in animations can be seen at [patterns.md](patterns).

### E1.31 sACN, Music Visualization, and LedFx Use
LEDControl can function as a E1.31 streaming ACN receiver, allowing the connected LEDs to be directly controlled over the network. [LedFx](https://github.com/LedFx/LedFx) is recommended for music visualization over sACN.
Expand Down
Binary file modified img/Blackbody-Cycle-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Blackbody-Cycle-1D.png
Binary file not shown.
Binary file modified img/Hue-Bounce-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Bounce-1D.png
Binary file not shown.
Binary file modified img/Hue-Cycle-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Cycle-1D.png
Binary file not shown.
Binary file modified img/Hue-Cycle-Quantized-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Cycle-Quantized-1D.png
Binary file not shown.
Binary file modified img/Hue-Ripples-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Ripples-1D.png
Binary file not shown.
Binary file modified img/Hue-Scan-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Scan-1D.png
Binary file not shown.
Binary file modified img/Hue-Waves-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Hue-Waves-1D.png
Binary file not shown.
Binary file modified img/Palette-Bounce-Mirrored-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Bounce-Mirrored-1D.png
Binary file not shown.
Binary file modified img/Palette-Cycle-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Cycle-1D.png
Binary file not shown.
Binary file modified img/Palette-Cycle-Mirrored-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Cycle-Mirrored-1D.png
Binary file not shown.
Binary file modified img/Palette-Cycle-Quantized-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Cycle-Quantized-1D.png
Binary file not shown.
Binary file modified img/Palette-Cycle-Random-1D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Cycle-Random-1D.png
Binary file not shown.
Binary file modified img/Palette-Fractal-Plasma-2D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/Palette-Fractal-Plasma-2D.png
Diff not rendered.
Binary file modified img/Palette-Perlin-Noise-2D.gif
Binary file removed img/Palette-Perlin-Noise-2D.png
Diff not rendered.
Binary file modified img/Palette-Plasma-2D.gif
Binary file removed img/Palette-Plasma-2D.png
Diff not rendered.
Binary file modified img/Palette-Ripples-(Fast-Cycle)-1D.gif
Binary file removed img/Palette-Ripples-(Fast-Cycle)-1D.png
Diff not rendered.
Binary file modified img/Palette-Ripples-1D.gif
Binary file removed img/Palette-Ripples-1D.png
Diff not rendered.
Binary file modified img/Palette-Scan-Mirrored-1D.gif
Binary file removed img/Palette-Scan-Mirrored-1D.png
Diff not rendered.
Binary file modified img/Palette-Twinkle-1D.gif
Binary file removed img/Palette-Twinkle-1D.png
Diff not rendered.
Binary file modified img/Palette-Waves-1D.gif
Binary file removed img/Palette-Waves-1D.png
Diff not rendered.
Binary file modified img/RGB-Cubics-1D.gif
Binary file removed img/RGB-Cubics-1D.png
Diff not rendered.
Binary file modified img/RGB-Fractal-Plasma-(Fire-Sines)-2D.gif
Binary file removed img/RGB-Fractal-Plasma-(Fire-Sines)-2D.png
Diff not rendered.
Binary file modified img/RGB-Plasma-(Fire-Sines)-2D.gif
Binary file removed img/RGB-Plasma-(Fire-Sines)-2D.png
Diff not rendered.
Binary file modified img/RGB-Plasma-(Spectrum-Sines)-2D.gif
Binary file removed img/RGB-Plasma-(Spectrum-Sines)-2D.png
Diff not rendered.
Binary file modified img/RGB-Ripples-1-1D.gif
Binary file removed img/RGB-Ripples-1-1D.png
Diff not rendered.
Binary file modified img/RGB-Sines-1D.gif
Binary file removed img/RGB-Sines-1D.png
Diff not rendered.
Binary file removed img/Static-Color.png
Diff not rendered.
Binary file removed img/Static-Gradient-1D.png
Diff not rendered.
Binary file removed img/Static-Gradient-Mirrored-1D.png
Diff not rendered.
2 changes: 1 addition & 1 deletion ledcontrol/animationpatterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def pattern(t, dt, x, y, z, prev_state):
v0 = x + (wave_sine(t)) + wave_sine(x + 0.666 * t)
v1 = x + (wave_sine(t + 0.05)) + wave_sine(x + 0.666 * t + 0.05)
v2 = x + (wave_sine(t + 0.1)) + wave_sine(x + 0.666 * t + 0.1)
return (0.005 / (wave_triangle(v0) + 0.01), 0.005 / (wave_triangle(v1) + 0.01), 0.005 / (wave_triangle(v2) + 0.01)), rgb
return (0.01 / (wave_triangle(v0) + 0.01), 0.01 / (wave_triangle(v1) + 0.01), 0.01 / (wave_triangle(v2) + 0.01)), rgb
'''
},
330: {
Expand Down
89 changes: 29 additions & 60 deletions patterns.md
Original file line number Diff line number Diff line change
@@ -1,120 +1,89 @@
## Built-In Animation Patterns

In the images below, the y-axis represents the colors of a linear array of LEDs and the x-axis represents time.

## Static Color
![img/Static-Color.png](img/Static-Color.png)
![img/Static-Color.gif](img/Static-Color.gif)
<img src="img/Static-Color.gif" width="800"/>

## Static Gradient 1D
![img/Static-Gradient-1D.png](img/Static-Gradient-1D.png)
![img/Static-Gradient-1D.gif](img/Static-Gradient-1D.gif)
<img src="img/Static-Gradient-1D.gif" width="800"/>

## Static Gradient Mirrored 1D
![img/Static-Gradient-Mirrored-1D.png](img/Static-Gradient-Mirrored-1D.png)
![img/Static-Gradient-Mirrored-1D.gif](img/Static-Gradient-Mirrored-1D.gif)
<img src="img/Static-Gradient-Mirrored-1D.gif" width="800"/>

## Hue Cycle 1D
![img/Hue-Cycle-1D.png](img/Hue-Cycle-1D.png)
![img/Hue-Cycle-1D.gif](img/Hue-Cycle-1D.gif)
<img src="img/Hue-Cycle-1D.gif" width="800"/>

## Hue Cycle Quantized 1D
![img/Hue-Cycle-Quantized-1D.png](img/Hue-Cycle-Quantized-1D.png)
![img/Hue-Cycle-Quantized-1D.gif](img/Hue-Cycle-Quantized-1D.gif)
<img src="img/Hue-Cycle-Quantized-1D.gif" width="800"/>

## Hue Scan 1D
![img/Hue-Scan-1D.png](img/Hue-Scan-1D.png)
![img/Hue-Scan-1D.gif](img/Hue-Scan-1D.gif)
<img src="img/Hue-Scan-1D.gif" width="800"/>

## Hue Bounce 1D
![img/Hue-Bounce-1D.png](img/Hue-Bounce-1D.png)
![img/Hue-Bounce-1D.gif](img/Hue-Bounce-1D.gif)
<img src="img/Hue-Bounce-1D.gif" width="800"/>

## Hue Waves 1D
![img/Hue-Waves-1D.png](img/Hue-Waves-1D.png)
![img/Hue-Waves-1D.gif](img/Hue-Waves-1D.gif)
<img src="img/Hue-Waves-1D.gif" width="800"/>

## Hue Ripples 1D
![img/Hue-Ripples-1D.png](img/Hue-Ripples-1D.png)
![img/Hue-Ripples-1D.gif](img/Hue-Ripples-1D.gif)
<img src="img/Hue-Ripples-1D.gif" width="800"/>

## Palette Cycle 1D
![img/Palette-Cycle-1D.png](img/Palette-Cycle-1D.png)
![img/Palette-Cycle-1D.gif](img/Palette-Cycle-1D.gif)
<img src="img/Palette-Cycle-1D.gif" width="800"/>

## Palette Cycle Mirrored 1D
![img/Palette-Cycle-Mirrored-1D.png](img/Palette-Cycle-Mirrored-1D.png)
![img/Palette-Cycle-Mirrored-1D.gif](img/Palette-Cycle-Mirrored-1D.gif)
<img src="img/Palette-Cycle-Mirrored-1D.gif" width="800"/>

## Palette Cycle Quantized 1D
![img/Palette-Cycle-Quantized-1D.png](img/Palette-Cycle-Quantized-1D.png)
![img/Palette-Cycle-Quantized-1D.gif](img/Palette-Cycle-Quantized-1D.gif)
<img src="img/Palette-Cycle-Quantized-1D.gif" width="800"/>

## Palette Cycle Random 1D
![img/Palette-Cycle-Random-1D.png](img/Palette-Cycle-Random-1D.png)
![img/Palette-Cycle-Random-1D.gif](img/Palette-Cycle-Random-1D.gif)
<img src="img/Palette-Cycle-Random-1D.gif" width="800"/>

## Palette Scan Mirrored 1D
![img/Palette-Scan-Mirrored-1D.png](img/Palette-Scan-Mirrored-1D.png)
![img/Palette-Scan-Mirrored-1D.gif](img/Palette-Scan-Mirrored-1D.gif)
<img src="img/Palette-Scan-Mirrored-1D.gif" width="800"/>

## Palette Bounce Mirrored 1D
![img/Palette-Bounce-Mirrored-1D.png](img/Palette-Bounce-Mirrored-1D.png)
![img/Palette-Bounce-Mirrored-1D.gif](img/Palette-Bounce-Mirrored-1D.gif)
<img src="img/Palette-Bounce-Mirrored-1D.gif" width="800"/>

## Palette Waves 1D
![img/Palette-Waves-1D.png](img/Palette-Waves-1D.png)
![img/Palette-Waves-1D.gif](img/Palette-Waves-1D.gif)
<img src="img/Palette-Waves-1D.gif" width="800"/>

## Palette Ripples 1D
![img/Palette-Ripples-1D.png](img/Palette-Ripples-1D.png)
![img/Palette-Ripples-1D.gif](img/Palette-Ripples-1D.gif)
<img src="img/Palette-Ripples-1D.gif" width="800"/>

## Palette Ripples (Fast Cycle) 1D
![img/Palette-Ripples-(Fast-Cycle)-1D.png](img/Palette-Ripples-(Fast-Cycle)-1D.png)
![img/Palette-Ripples-(Fast-Cycle)-1D.gif](img/Palette-Ripples-(Fast-Cycle)-1D.gif)
<img src="img/Palette-Ripples-(Fast-Cycle)-1D.gif" width="800"/>

## Palette Plasma 2D
![img/Palette-Plasma-2D.png](img/Palette-Plasma-2D.png)
![img/Palette-Plasma-2D.gif](img/Palette-Plasma-2D.gif)
<img src="img/Palette-Plasma-2D.gif" width="800"/>

## Palette Fractal Plasma 2D
![img/Palette-Fractal-Plasma-2D.png](img/Palette-Fractal-Plasma-2D.png)
![img/Palette-Fractal-Plasma-2D.gif](img/Palette-Fractal-Plasma-2D.gif)
<img src="img/Palette-Fractal-Plasma-2D.gif" width="800"/>

## Palette Twinkle 1D
![img/Palette-Twinkle-1D.png](img/Palette-Twinkle-1D.png)
![img/Palette-Twinkle-1D.gif](img/Palette-Twinkle-1D.gif)
<img src="img/Palette-Twinkle-1D.gif" width="800"/>

## Palette Perlin Noise 2D
![img/Palette-Perlin-Noise-2D.png](img/Palette-Perlin-Noise-2D.png)
![img/Palette-Perlin-Noise-2D.gif](img/Palette-Perlin-Noise-2D.gif)
<img src="img/Palette-Perlin-Noise-2D.gif" width="800"/>

## RGB Sines 1D
![img/RGB-Sines-1D.png](img/RGB-Sines-1D.png)
![img/RGB-Sines-1D.gif](img/RGB-Sines-1D.gif)
<img src="img/RGB-Sines-1D.gif" width="800"/>

## RGB Cubics 1D
![img/RGB-Cubics-1D.png](img/RGB-Cubics-1D.png)
![img/RGB-Cubics-1D.gif](img/RGB-Cubics-1D.gif)
<img src="img/RGB-Cubics-1D.gif" width="800"/>

## RGB Ripples 1 1D
![img/RGB-Ripples-1-1D.png](img/RGB-Ripples-1-1D.png)
![img/RGB-Ripples-1-1D.gif](img/RGB-Ripples-1-1D.gif)
<img src="img/RGB-Ripples-1-1D.gif" width="800"/>

## RGB Plasma (Spectrum Sines) 2D
![img/RGB-Plasma-(Spectrum-Sines)-2D.png](img/RGB-Plasma-(Spectrum-Sines)-2D.png)
![img/RGB-Plasma-(Spectrum-Sines)-2D.gif](img/RGB-Plasma-(Spectrum-Sines)-2D.gif)
<img src="img/RGB-Plasma-(Spectrum-Sines)-2D.gif" width="800"/>

## RGB Plasma (Fire Sines) 2D
![img/RGB-Plasma-(Fire-Sines)-2D.png](img/RGB-Plasma-(Fire-Sines)-2D.png)
![img/RGB-Plasma-(Fire-Sines)-2D.gif](img/RGB-Plasma-(Fire-Sines)-2D.gif)
<img src="img/RGB-Plasma-(Fire-Sines)-2D.gif" width="800"/>

## RGB Fractal Plasma (Fire Sines) 2D
![img/RGB-Fractal-Plasma-(Fire-Sines)-2D.png](img/RGB-Fractal-Plasma-(Fire-Sines)-2D.png)
![img/RGB-Fractal-Plasma-(Fire-Sines)-2D.gif](img/RGB-Fractal-Plasma-(Fire-Sines)-2D.gif)
<img src="img/RGB-Fractal-Plasma-(Fire-Sines)-2D.gif" width="800"/>

## Blackbody Cycle 1D
![img/Blackbody-Cycle-1D.png](img/Blackbody-Cycle-1D.png)
![img/Blackbody-Cycle-1D.gif](img/Blackbody-Cycle-1D.gif)
<img src="img/Blackbody-Cycle-1D.gif" width="800"/>

13 changes: 7 additions & 6 deletions renderpreviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
controller = AnimationController(None, 0, 256, pixelmappings.line(256), (0, 0, 0), False)

s = 100 # LED strip length
t = 500 # Time units
gif_t = 200 # Animated gif duration
t = 400 # Time units
gif_t = 300 # Animated gif duration

f = open('patterns.md', 'w')
f.write('## Built-In Animation Patterns\n\nIn the images below, the y-axis represents the colors of a linear array of LEDs and the x-axis represents time.\n\n')
f.write('## Built-In Animation Patterns\n\n')

for pattern_dict in animpatterns.default.values():
errors, warnings, pattern = controller.compile_pattern(pattern_dict['source'])
Expand Down Expand Up @@ -46,10 +46,11 @@
if i < gif_t:
frames.append(frame)

img_name = f'img/{pattern_dict["name"]}.png'.replace(' ', '-')
#img_name = f'img/{pattern_dict["name"]}.png'.replace(' ', '-')
gif_name = f'img/{pattern_dict["name"]}.gif'.replace(' ', '-')
img.save(img_name)
#img.save(img_name)
frames[0].save(gif_name, save_all=True, append_images=frames[1:], duration=100, loop=0)
f.write(f'![{img_name}]({img_name})\n![{gif_name}]({gif_name})\n\n')
f.write(f'<img src="{gif_name}" width="800"/>\n\n')
#f.write(f'<img src="{img_name}" width="800"/>\n\n')

f.close()

0 comments on commit e407865

Please sign in to comment.