Skip to content

Commit 0ec9f1c

Browse files
committed
Berry animation rename classes and animations
1 parent 30fe9ff commit 0ec9f1c

14 files changed

+427
-447
lines changed

docs/Berry-Animation.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Writing LED animations in pure Berry code requires understanding the animation e
1010

1111
- **Declarative, not imperative** - Just specify *what* you want and *how long* it should take; the framework handles all intermediate states and timing
1212
- **No state machines** - Forget about tracking animation phases, transitions, and timing manually
13-
- **Readable syntax** - Write `animation pulse = pulsating_animation(color=red, period=2s)` instead of dozens of lines of Berry code
13+
- **Readable syntax** - Write `animation pulse = breathe(color=red, period=2s)` instead of dozens of lines of Berry code
1414
- **Automatic engine management** - No need to create engines, manage frame buffers, or handle timing
1515
- **Built-in effects** - Access to pulse, breathe, fire, comet, sparkle, wave, and many more effects
1616
- **Dynamic parameters** - Oscillating values (sine, triangle, smooth) without manual math
@@ -49,22 +49,22 @@ Without `USE_BERRY_ANIMATION_DSL`, use the online emulator to create animations
4949
### Simple Breathing Animation
5050

5151
```berry
52-
animation pulse = breathe_animation(color=red, period=2s)
52+
animation pulse = breathe(color=red, period=2s)
5353
run pulse
5454
```
5555

5656
### Rainbow Smooth Color Cycling
5757

5858
```berry
59-
animation rainbow = rich_palette_animation(colors=PALETTE_RAINBOW)
59+
animation rainbow = rich_palette(colors=PALETTE_RAINBOW)
6060
run rainbow
6161
```
6262

6363
### Animation Sequence
6464

6565
```berry
66-
animation red_pulse = breathe_animation(color=red, period=2s)
67-
animation blue_pulse = breathe_animation(color=blue, period=1.5s)
66+
animation red_pulse = breathe(color=red, period=2s)
67+
animation blue_pulse = breathe(color=blue, period=1.5s)
6868
6969
sequence show repeat forever {
7070
play red_pulse for 4s
@@ -136,7 +136,7 @@ template animation pulse_effect {
136136
param pulse_color type color
137137
param speed
138138
139-
animation pulse = pulsating_animation(color=pulse_color, period=speed)
139+
animation pulse = breathe(color=pulse_color, period=speed)
140140
run pulse
141141
}
142142
@@ -155,19 +155,17 @@ run show
155155
Animation|Description
156156
:---|:---
157157
`solid`|Solid color fill
158-
`pulsating_animation`|Breathing/pulsing effect with smooth transitions
159-
`breathe_animation`|Natural breathing effect with customizable curve
160-
`beacon_animation`|Pulse/highlight at specific position with optional slew
161-
`crenel_animation`|Crenel/square wave pattern
162-
`comet_animation`|Moving comet with fading tail
163-
`twinkle_animation`|Twinkling stars effect
164-
`fire_animation`|Realistic fire simulation
165-
`rich_palette`|Smooth palette color transitions
166-
`gradient_animation`|Linear or radial color gradients
167-
`palette_gradient_animation`|Gradient patterns with palette colors
168-
`palette_meter_animation`|Meter/bar patterns
169-
`gradient_meter_animation`|VU meter with gradient and peak hold
170-
`wave_animation`|Wave motion effects
158+
`breathe`|Natural breathing effect with customizable curve
159+
`beacon`|Pulse/highlight at specific position with optional slew
160+
`crenel`|Crenel/square wave pattern
161+
`comet`|Moving comet with fading tail
162+
`twinkle`|Twinkling stars effect
163+
`fire`|Realistic fire simulation
164+
`rich_palette_color`|Smooth palette color transitions
165+
`gradient`|Linear or radial color gradients
166+
`palette_gradient`|Gradient patterns with palette colors
167+
`palette_meter`|VU meter with gradient and peak hold
168+
`wave`|Wave motion effects
171169

172170
## Documentation
173171

docs/Tasmota-Berry-emulator/animation-examples.js

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

docs/Tasmota-Berry-emulator/berry-modules.js

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)