Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() {
- let canvas1 = createCanvas(100, 100);
- canvas1.position(0,0);
- }
- function draw() {
- //for canvas 1
- background(100);
- rotateX(frameCount * 0.01);
- rotateZ(frameCount * 0.01);
- cone(30, 50);
- }
- function setup() {
- let canvas2 = createCanvas(100, 100);
- canvas2.position(100,0);
- }
- function draw() {
- //for canvas 2
- background(100);
- rotateX(frameCount * 0.01);
- rotateZ(frameCount * 0.02);
- cone(30, 50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement