ScratchData LogoScratchData
Back to dodekagonia's profile

1 Line Challenge- r*r cos r*r

DOdodekagonia•Created July 2, 2016
1 Line Challenge-  r*r cos r*r
13
6
58 views
View on Scratch

Instructions

Use TURBO mode to see the demonstration pattern. (Press the <Shift> key and click the Green Flag for TURBO mode). The "1 Line Challenge" is to produce an interesting pattern on the screen using only one line of code to calculate the color of each pixel. You may only change the "set pen color to ..." line in this project. Please put your remixed "1 Line Challenge" Projects in the Studio https://scratch.mit.edu/studios/2825709/ If you just had to break the rules please put your "Not Quite A 1 Line Project" projects in this studio instead https://scratch.mit.edu/studios/2825759/ "See Inside" for more Rules, Rewards, a Short Tutorial etc.

Description

Lots of thanks to Scratch-Minion! Here I have used the expression r*r cos r*r, where r is the distance to the center ( r*r = x*x + y*y ). The expression is then multiplied by 0.007 to get a suitable drawing region. Adding 10 is for choosing the coloring.

Project Details

Project ID115437657
CreatedJuly 2, 2016
Last ModifiedJuly 2, 2016
SharedJuly 2, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root