SHARE
TWEET

Untitled

a guest Feb 24th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. drawAllClouds(20, 5);
  2.  
  3. function drawAllClouds(size, amount){
  4.   for (var i = 0; i < amount; i++) {
  5.     drawCloud(randomNumber(size, size + 5));
  6.   }
  7. }
  8. function drawCloud(size){
  9.   moveTo(randomNumber(0,400), randomNumber(8,214));
  10.   penDown();
  11.   penRGB(255,255,255,1);
  12.   dot(size);
  13.   for(var i=0; i<2; i++){
  14.     turnTo(315);
  15.     moveForward(size);
  16.     dot(size);
  17.     turnLeft(90);
  18.     moveForward(size);
  19.     dot(size);
  20.     penUp();
  21.   }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top