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
let angle = 0; | |
let w = 20; // largura | |
let ma; //angulo necessário para a perspectiva isométrica | |
let maxD; | |
function setup(){ | |
createCanvas(400,400, WEBGL); | |
ma = atan(1/sqrt(2)); | |
maxD = dist(0, 0, 200, 200); |
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
let angle = 0; | |
let w = 24; // largura | |
let ma; | |
function setup(){ | |
createCanvas(400,400, WEBGL); | |
ma = atan(1/sqrt(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
PVector location; | |
PVector velocity; | |
void setup() { | |
size(400, 400); | |
smooth(); | |
location = new PVector(100, 100); | |
velocity = new PVector(6, 5); | |
} | |
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
//[full] Variables for location and speed of ball. | |
float x = 100; | |
float y = 100; | |
float xspeed = 5; | |
float yspeed = 3.3; | |
//[end] | |
//[full] Remember how Processing works? setup() is executed once when the sketch starts and draw() loops forever and ever (until you quit). | |
void setup() { | |
size(640,360); |
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 cols, rows; | |
int scl= 20; // escala | |
int w = 2000; | |
int h = 1600; | |
float flying = 0; | |
float[][] terrain; | |
void setup(){ | |
size(500, 500, P3D); |
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
float increment= 0.01; | |
float zoff = 0.0; | |
float zincrement= 0.02; | |
void settings(){ | |
size(800, 800); | |
} | |
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
Walker w; | |
void settings() { | |
size(800,700); | |
} | |
void setup() { | |
frameRate(100); |
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
color c; | |
void setup() { | |
size(800, 800); | |
colorMode(HSB, 360, 100, 100); | |
background(#000000); | |
} | |
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
float[] distributionA = new float[360]; | |
float[] distributionB = new float[360]; | |
int v1 = 0; | |
int v2 = 0; | |
int v3 = 0; | |
int alpha = 0; | |
void setup() { | |
size(500, 500); |
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
float num; | |
void setup() { | |
size(800, 800); | |
background(150); | |
smooth(); | |
} | |
NewerOlder