Textures v1.5

Words
304
Reading
2 min
Listen
Play
9y

image.png

I finally figured out how to get a somewhat organic looking line and allow that to seed other lines.

The approach I had earlier was close, but not quite close enough.

It was based on messing with a sinusoidal enough to try to get traces that would approximate Jen Stark's piece.

image.png
By Jen Stark -> http://www.jenstark.com

But the algorithm was flawed and it took me a week in a half to get something working. This morning around 4:30am I woke up to breed some cryptokitties and followed that sesh up with a decent algorithm to get me heading in the right direction.

Here's the idea. I need to get the plot to wander in one general direction. Then turn around if it gets to far up or down the y-axis. It kind of behaves like a sinusoidal, but much dirtier.

Algorithm:

  • Create a seed value in the first element of an array.
  • Check the outer counter and make sure counter % 5 != 0
    • If the counter is divisible by 5, add the previous array value to the current array value + a tiny random amplitude sinusoidal value.
    • If the counter is not divisible by 5, rewrite the previous array again.

This is the heart of the new concept. Here are some results after playing with the variables.

image.png
Moved colors out to the outer loop. I don't like this as much as the original.

image.png
Oops! I tried adjusting the step to make the loops move faster, I cut out too much. This looks like a music album cover.

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png
Set the variable in the modulus if statement equal to the inner index

image.png

While there is still more tinkering to do, I am happy it is beginning to get closer.


Link: https://github.com/hizzvizz/Textures/blob/1.0/texture1.5_og.html

Screenshot while I am logged in:

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Textures v1.5 | Ecency