r/processing • • Mar 28 '16

[PWC3] Random Walker

Hello Everybody, this is the third Weekly Processing challenge, the challenges are decided just to give you a prompt to test your skills so it can be as simple or as complicated as you have time to write! Start Date : 28-03-2016 End Date : 03-04-2016

Entries must be submitted with the [PWC3] In the Title of their post. Or post them in the comments here with the same tag.

This Weeks Challenge : Random Walker Here is a blog post giving a very basic intro and then climbing up into something quite complicated.

If you are here to learn feel free to ask for help in the comments below. Lay a brick perfectly every day and eventually you will have a wall, Joe

Winner from last week as decided by mods

Highest Voted : pflu

Interaction : pflu

Graphics : Freedom_Grenade

Accuracy : Introscopia

12 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/NakedFluffyBee Mar 29 '16

Thanks! This is one of my favorite sketch, you can get a lot of different results such as:

http://imgur.com/a/2sUlF/

"And are the glowing vertices a certain effect, or do the lines just turn white when they overlap?"

Yes, it's a "special effect"! just call:

blendMode(ADD);

in your setup! Try it on your sketches with a black background. See https://processing.org/reference/blendMode_.html/ for more details!

"So is there a walker for each edge that gets reset every frame?"

In fact, the walkers are creating other walkers under some conditions, and each walker is composed of x points that has a velocity/pos. I could do an entire video just to explain how this sketch works, I cannot sum it. I could do such a video if you want to see the algo, how it works and how to use it (I spent more time using the tool than really developing it).

2

u/TazakiTsukuru Mar 29 '16

I'd totally appreciate a video like that, if you're willing to make one!