Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge_burst effect improvemnet propose #1

Open
stiw47 opened this issue May 29, 2023 · 0 comments
Open

edge_burst effect improvemnet propose #1

stiw47 opened this issue May 29, 2023 · 0 comments

Comments

@stiw47
Copy link

stiw47 commented May 29, 2023

Not an actual issue, if you consider it inappropriate and if this is not the right place, be free to close it immediately, I don't mind.

As always: Thanks for great software!

I much like edge_burst ARTI-FX effect, maybe because it perfectly fits to one my lamp.
I improved it for my self this way:

t1 = triangle(time(.1)) -> t1 = triangle(time(0.3 - speedSlider / 1000)) (so I can set the speed)
f = index / ledCount -> f = index / intensitySlider (so I can set the wideness, not the best solution, but it is working)
s = 1 -> s = custom1Slider / 255 (so I can set saturation, almost like changing color palette, not exactly)

Full code I'm using:

program edge_burst {

  function renderFrame() {
    t1 = triangle(time(0.3 - speedSlider / 1000))
  }

  function renderLed(index) {
    f = index / intensitySlider
    edge = clamp(triangle(f) + t1 * 4 - 2, 0, 1)
    v = triangle(edge)
    h = edge * edge - .2
    s = custom1Slider / 255
    leds[index] = hsv(h * 255, s * 255, v * 255)
  }
}

Some few seconds video demo could be seen here: https://discord.com/channels/473448917040758787/706623245935444088/1095414061103059054
I believe, with your programming skills, you can improve it even more. Be free to implement above change if you like it.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant