Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

dimkir

🎯
Focusing
View GitHub Profile
@dimkir
dimkir / Sketch code
Created Sep 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Sep 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Sep 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Sep 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Sep 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Oct 15, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Oct 15, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Oct 15, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Oct 17, 2013
Created using Sketch2Tweet tool
View Sketch code
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 Oct 17, 2013
Created using Sketch2Tweet tool
View Sketch code
int s = 600;
int h = 1;
void setup() {
size (s, s);
stroke(0);
colorMode(HSB, 255);
background(0);
}
void draw() {
if (h<s) {
You can’t perform that action at this time.