Vortex icon indicating copy to clipboard operation
Vortex copied to clipboard

Allow randomRamp particles to use different arrays

Open gemedet opened this issue 10 months ago • 2 comments

This PR adds a boolean flag to randomRamp, allowing the randomization to be per particle.

gemedet avatar Mar 18 '25 05:03 gemedet

I think I understand what this trying to do, but the name preselect is really throwing me off. What alternatives are there?

twostraws avatar May 02 '25 11:05 twostraws

@twostraws I also considered the names fixed and shared, let me know if you have another idea.

Alternatively, we could just add a separate case, such as:

// Select one random color array for all particles
case randomRamp(_ colors: [[Color]])

// Select a random color array for each particle
case multiRamp(_ colors: [[Color]])

gemedet avatar May 02 '25 22:05 gemedet