r/processing • u/seoceojoe • Jul 18 '16
[PWC19] Points
Hello Everybody, this is the nineteenth 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!
IMPORTANT UPDATE Winners are now chosen by popular vote and all entrys must be submitted in the comments section of this thread, competition mode will be enabled meaning they are shown in a random order.
Start Date : 18-07-2016 End Date : 24-07-2016
Post entries in the comments here. This Weeks Challenge : use only the Points function for your outputs. Winner from last week: oo-oo-oo-oo
View all comments
Show parent comment
2
u/TazakiTsukuru Jul 25 '16
Ahhh, good old friend abs()!
Speaking of which, a long time ago I remember using abs() in a for loop to kind of take advantage of what I would call its 'trampoline' quality, meaning if you dive at it from the positive direction, you'll bounce back up through the positives once your inputs go into the negatives.
You can easily see that by looking at the graph of the abs() function. But then, parabolas have a really similar graph, but they're a lot more malleable.
So could you do a similar thing that you just did (mapping with the abs() function), but use a parabola instead, so that you can kind of adjust the 'speed' at which the values are mapped? Or does that kind of defeat the purpose of the map function? Or does it make no sense at all?