Skip to content

Instantly share code, notes, and snippets.

View dimkir's full-sized avatar
🎯
Focusing

dimkir

🎯
Focusing
View GitHub Profile
@dimkir
dimkir / Sketch code
Created September 17, 2013 09:32
Created using Sketch2Tweet tool
int i, s=1024, r;
void setup() {
size(s, s);
noStroke();
}
void draw() {
r=8<<++i%6;
fill(-(r<<(i/s))+(i%24)*r, 270-r);
shapetangle(i/9*8%s, 8*i*i*i%s, r, r);
}//#p5
@dimkir
dimkir / Sketch code
Created September 17, 2013 09:47
Created using Sketch2Tweet tool
int i, s=1024, r;
void setup() {
size(s, s);
noStroke();
}
void draw() {
r=8<<++i%6;
fill(-(r<<(i/s))+(i%24)*r, 270-r);
rect(sin(i/9*8%s) * i, 8*i*i*i%s, r, r);
}//#p5
@dimkir
dimkir / Sketch code
Created September 17, 2013 09:56
Created using Sketch2Tweet tool
int i, n, s=900;
void setup() {
size(s, s);
}
void draw() {
n=int(90+90*sin((i+=5)*.01));
textSize(n);
fill(233<<n);
text(i/s, i%s-50, 99*(i/s)%s-n);
}//#p5
@dimkir
dimkir / Sketch code
Created September 17, 2013 10:08
Created using Sketch2Tweet tool
int i, n, s=900;
void setup() {
size(s, s);
}
void draw() {
n=int(90+90*sin((i+=5)*.01));
textSize(n);
fill(233<<n);
text(i/s, i%s-50, 99*(i/s)%s-n);
}//#p5
@dimkir
dimkir / Sketch code
Created September 17, 2013 10:11
Created using Sketch2Tweet tool
int i, n, s=900;
void setup() {
size(s, s);
colorMode(HSB, 255);
}
void draw() {
n=int(90+90*sin((i+=5)*.51));
// a bit faster ^^^^
textSize(n);
fill(233<<n);
@dimkir
dimkir / Sketch code
Created October 15, 2013 22:00
Created using Sketch2Tweet tool
void setup() {
size(800, 600);
fill(255, 9);
colorMode(HSB, 255);
}
void draw() {
fill(255,3);
rect(0, 0, 800, 600);
fill(randomColor());
float r=random(-50, 50);
@dimkir
dimkir / Sketch code
Created October 15, 2013 22:04
Created using Sketch2Tweet tool
void setup() {
size(800, 600);
fill(255, 9);
colorMode(HSB, 255);
}
void draw() {
fill(255,3);
rect(0, 0, 800, 600);
fill(randomColor());
float r=random(-50, 50);
@dimkir
dimkir / Sketch code
Created October 15, 2013 22:06
Created using Sketch2Tweet tool
void setup() {
size(800, 600);
fill(255, 9);
colorMode(HSB, 255);
}
void draw() {
fill(255,3);
rect(0, 0, 800, 600);
fill(randomColor());
float r=random(-50, 50);
@dimkir
dimkir / Sketch code
Created October 17, 2013 02:19
Created using Sketch2Tweet tool
int s=600;
int x, y;
int[] z= {
-4, 4
};
void setup() {
size(s, s);
colorMode(HSB,255);
background(0);
}
@dimkir
dimkir / Sketch code
Created October 17, 2013 02:25
Created using Sketch2Tweet tool
int s = 600;
int h = 1;
void setup() {
size (s, s);
stroke(0);
colorMode(HSB, 255);
background(0);
}
void draw() {
if (h<s) {