DEV Community

Cover image for Generative Art Using Swift

Generative Art Using Swift

Steven Rockarts on October 05, 2018

A couple weeks ago a post by Ali Spittel came across my feed that showed how you can make generative art using Javascript: ...
Collapse
 
rockswiftllc profile image
Rockswift

I really enjoyed this! I decided to animate the drawing and make it regen on a tap and it is very pleasing to watch.

Collapse
 
rockarts profile image
Steven Rockarts

Nice! I was thinking about that the other day. Do you have a video of it?

Collapse
 
rockswiftllc profile image
Rockswift • Edited

Here you go.
animated gif of screen drawing

Thread Thread
 
rockarts profile image
Steven Rockarts

Awesome!

Collapse
 
patrickrche profile image
Patrick Roche

Any chance of seeing the animating code?

Thread Thread
 
rockswiftllc profile image
Rockswift

Sorry, code did not make it to my new machine.

Thread Thread
 
patrickrche profile image
Patrick Roche

Thanks for the reply.
I figured a solution myself. I can send you a link to my code. I would love to see what you think!

Thread Thread
 
patrickrche profile image
Patrick Roche

I put the code up on GitHub.
Hope I did it right - it is the first time i have used this service.!
Here is the URL
github.com/rochieGH/ZigZag/tree/ma...

Collapse
 
patrickrche profile image
Patrick Roche

Is there any chance of seeing this code.

Collapse
 
coolnerdcool profile image
Michel • Edited

Wow, just what I was looking for. Thank you.

Collapse
 
rockarts profile image
Steven Rockarts

Great! Glad you liked it, I'm hoping to do a couple more tutorials of generative art.