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
//reference code for solution of perfect Spiral: | |
//https://gist.github.com/chandeeland/b69156115e2b5842d83ca9eb3b2bbf2e | |
//failed trial:: https://gist.github.com/volfegan/e55decad6814e63fb450379c9bf13a61 | |
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009 | |
float a, b, x, y, d, h=600/2, r, s, shrink=0.94; | |
void setup() { | |
size(600, 600); | |
} | |
void draw() { | |
background(#EFF2D0); |
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
//based on: https://twitter.com/ntsutae/status/1209356755433443331 | |
float C=0, D, W=720, sizeText=18, x, y, X; | |
long t; | |
char binary, b0 = '0', b1 = '1'; | |
PFont font; | |
void setup() { | |
size(720, 720); | |
//printArray(PFont.list()); | |
font = createFont("Calibri", sizeText);//Calibri; Candara; Malgun Gothic; Monospaced.plain; Ubuntu Mono; | |
textFont(font); |
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
//based on: https://twitter.com/ntsutae/status/1209356755433443331 | |
import java.lang.StringBuilder; | |
import java.util.*; | |
float C=0, D, W=720, sizeText=18, x, y, X; | |
char binary; | |
PFont font; | |
void setup() { | |
size(720, 720); | |
//printArray(PFont.list()); | |
font = createFont("Calibri", sizeText);//Calibri; Candara; Malgun Gothic; Monospaced.plain; Ubuntu Mono; |
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
//based on https://www.openprocessing.org/sketch/816944 | |
//somewhat inspired by https://codepen.io/al-ro/pen/BaaBage?editors=1010 | |
//resources http://mathworld.wolfram.com/HeartCurve.html | |
ArrayList<Node> arrayNodes = new ArrayList<Node>(); | |
float scaleDiv = 50; //scale the size of the heart | |
void setup() { | |
size(720, 720); | |
colorMode(HSB, 100); | |
strokeWeight(2); | |
translate(width/2, height/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
//https://twitter.com/ntsutae/status/1216186934172585984 | |
float C=0, W=640, d, i; | |
boolean saveFrames = true; | |
//https://processing.org/examples/toroid.html | |
int segments = 32; | |
int pts = 32; | |
float angle = 0; | |
float radius = W/6; | |
float latheAngle = 0; |
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
//based on https://twitter.com/ntsutae/status/1216012181415714819 | |
float C=0, M, W=720; | |
void setup() { | |
size(720, 720); | |
stroke(255); | |
M=W/17; | |
} | |
void draw() { | |
clear(); | |
background(0); |
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
//based on https://twitter.com/ntsutae/status/1220199448891944963 | |
float C=0, W=720; | |
float S=.25; //speed | |
void setup() { | |
size(720, 720, P3D); | |
} | |
void draw() { | |
clear(); | |
C+=S; | |
translate(W/2,W/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
//https://twitter.com/Kahrzdn/status/1224791864940908546 | |
float c=0, d, y, W=720; | |
void setup() { | |
size(720, 720); | |
} | |
void draw() { | |
fill(0); | |
if (c++%W<40) d=c*W%57; | |
else d = 0; | |
circle(W/2, W/2+d, W); |
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
_______-|-_______ | |
________|________ | |
____.-'~~~`-.____ | |
:__.':::::::`.___ | |
:__|:R::I::P:|___ | |
:__|:::::::::|___ | |
:__|:::::::::|___ | |
:\\|:::::::::|//_ | |
^^^^^^^^^^^^^^^^^^ |
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
//http://mathworld.wolfram.com/HeartCurve.html | |
float a=0; //angle | |
float x, y; | |
float scaleDiv = 40; //scale divisor for the size of the heart | |
void setup() { | |
size(720, 720); | |
colorMode(HSB, 360); | |
background(0); | |
noStroke(); | |
} |