AutoHotkey | Android | Arduino | COMM140 | Fractals | Grammar Checkers | Knots | A Million Dots Activity | Processing | Processing for Scratch Users | Redbubble | Tutorials | Weather | World Time Meeting Planner | Favicon Generator.
Home > Tutorials > Processing > Processing Examples > Spiral 2
// Spiral v2 // Author Rupert Russell // October 2, 2010 void setup() { size(600, 600); noFill(); smooth(); } // Global Variables float x = 0; float y = 0; float deg = 1; float st = 1; int count = 0; void draw() { strokeWeight(st); translate(width/2, height/2); // translate to center of screen rotate(deg); point(x, y); x = x + 0.1; y = y + 0.1; deg = deg + 1; st = st + 0.007; count ++; if (count > 2000) {noLoop();} }
APA citation:
Russell, R. (2016, July 05, 07:26 am). Scintillating grid.
Retrieved November 22, 2024, from http://www.rupert.id.au/tutorials/processing/examples/scintillating.php
Last refreshed: November 22 2024. 10:21.38 am
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.