Skip to content

edge_burst effect improvemnet propose #1

@stiw47

Description

@stiw47

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions