Quick tip for your code components, if you are working with generators, shaders, complex effects, multi object positioning or arrangements.
AI: request seed values
In Code: use a trusted Rng function library to create seed values.
Why? Specially when working with things that has or could use random values or complex structures, using a rng or seed values will allow you to consistently display the same results on devices or through page loads and you also give the user the possibility to create variations based on a single value.
With an Rng with a fixed value, if you have lets say an object that has a random x,y position, the Rng function will always follow the same predictive random pattern.
Some of my components use seed values with that purpose, if you are curious check: Shattered Glass, Cubic Gallery (specifically the TweakPane Adaptation component), or Radial Gallery.
Quick tip for your code components, if you are working with generators, shaders, complex effects, multi object positioning or arrangements.
AI: request seed values
In Code: use a trusted Rng function library to create seed values.
Why? Specially when working with things that has or could use random values or complex structures, using a rng or seed values will allow you to consistently display the same results on devices or through page loads and you also give the user the possibility to create variations based on a single value.
With an Rng with a fixed value, if you have lets say an object that has a random x,y position, the Rng function will always follow the same predictive random pattern.
Some of my components use seed values with that purpose, if you are curious check: Shattered Glass, Cubic Gallery (specifically the TweakPane Adaptation component), or Radial Gallery.