r/processing • u/seoceojoe • 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
View all comments
Show parent comment
1
u/Salanmander Mar 29 '16
For the first part, you might start with something like this: draw a circle that is 100 pixels away from the center of the screen, and moving around it in a circle. Just change the angle by 1 per frame, and use that new angle to recalculate the place that the circle should be.
As for the second part, you want the line() command. Keep track of the start and end positions of the walker, and then draw a line between them.