Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function setup() {
  2. let canvas1 = createCanvas(100, 100);
  3. canvas1.position(0,0);
  4. }
  5. function draw() {
  6. //for canvas 1
  7. background(100);
  8. rotateX(frameCount * 0.01);
  9. rotateZ(frameCount * 0.01);
  10. cone(30, 50);
  11. }
  12. function setup() {
  13. let canvas2 = createCanvas(100, 100);
  14. canvas2.position(100,0);
  15. }
  16. function draw() {
  17. //for canvas 2
  18. background(100);
  19. rotateX(frameCount * 0.01);
  20. rotateZ(frameCount * 0.02);
  21. cone(30, 50);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement