This file contains hidden or 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 seed = int(random(999999)); | |
| boolean export = false; | |
| void setup() { | |
| size(960, 960, P2D); | |
| smooth(8); | |
| pixelDensity(2); | |
| generate(); |
This file contains hidden or 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
| import bpy | |
| import random | |
| import math | |
| # random seed | |
| seed = random.randint(0, 99999); | |
| def main(): |
This file contains hidden or 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
| void setup() { | |
| size(960, 960, P2D); | |
| pixelDensity(2); | |
| background(230); | |
| noStroke(); | |
| fill(250); | |
| ellipse(width*0.25, height*0.25, width*0.4, width*0.4); | |
| ellipse(width*0.75, height*0.25, width*0.4, width*0.4); |
This file contains hidden or 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 seed = int(random(999999)); | |
| float nwidth = 960; | |
| float nheight = 960; | |
| float swidth = 960; | |
| float sheight = 960; | |
| float scale = 1; | |
| boolean export = false; |
This file contains hidden or 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 totalIte = 15; | |
| void setup() { | |
| size(600, 600); | |
| generate(); | |
| } | |
| void draw() { | |
| } |
This file contains hidden or 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
| void hoja(float x, float y, float s, float ang, int col) { | |
| float w = s*0.3; | |
| float h = int(s); | |
| pushMatrix(); | |
| translate(x, y); | |
| rotate(ang); | |
| float pb = 0.8; | |
| float px = 2.2; |
This file contains hidden or 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
| void arc2(float x, float y, float s1, float s2, float a1, float a2, int col, float alp1, float alp2) { | |
| float r1 = s1*0.5; | |
| float r2 = s2*0.5; | |
| float amp = (a2-a1); | |
| float ma = map(amp, 0, TWO_PI, 0, 1); | |
| int cc = max(2, int(max(r1, r2)*PI*ma)); | |
| float da = amp/cc; | |
| for (int i = 0; i < cc; i++) { | |
| float ang = a1+da*i; | |
| beginShape(); |
This file contains hidden or 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 seed = int(random(999999)); | |
| void setup() { | |
| size(960, 960, P2D); | |
| smooth(8); | |
| pixelDensity(2); | |
| generate(); | |
| } |
This file contains hidden or 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 seed = int(random(999999)); | |
| void setup() { | |
| size(960, 960, P3D); | |
| smooth(8); | |
| pixelDensity(2); | |
| generate(); | |
| } |
This file contains hidden or 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 fps = 30; | |
| float seconds = 3; | |
| boolean export = true; | |
| int frames = int(fps*seconds); | |
| float time = 0; | |
| void setup() { | |
| size(640, 640); | |
| smooth(8); |
NewerOlder