Created
October 17, 2013 02:25
-
-
Save dimkir/7018343 to your computer and use it in GitHub Desktop.
Created using Sketch2Tweet tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int s = 600; | |
int h = 1; | |
void setup() { | |
size (s, s); | |
stroke(0); | |
colorMode(HSB, 255); | |
background(0); | |
} | |
void draw() { | |
if (h<s) { | |
translate(s/2+h, s/2+h); | |
rotate(h); | |
randomStroke(); | |
line (0, -250, 0, 250); | |
h++; | |
} | |
else{ | |
h = 0; | |
} | |
} | |
float td= 0.005; | |
float t = random(1000); | |
void randomStroke(){ | |
//color k = color(int(random(255)), 255,255); | |
int val = (int) (noise(t) * 255); t += td; | |
color k = color(val, 255,255); | |
stroke(k); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is comment which can show image of the sketch