SHARE
TWEET

Untitled

a guest May 27th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include "fap3d.h"
  3. #include <windows.h>
  4. #include <vector>
  5. #include <ctime>
  6. #include <random>
  7.  
  8. using namespace fap3d::setup;
  9. using namespace fap3d::shapes::bidimensional;
  10. using namespace fap3d::colors;
  11. using namespace fap3d;
  12.  
  13. int rzs = 8;
  14. int main() {
  15.     Window d = Window(0,0,900,600);
  16.     d.open();
  17.     Turtle tr = Turtle(d.getCenter());
  18.     double i=0;
  19.     std::vector<Turtle> vecs;
  20.     double transangle = fap3d::globals::PI/16;
  21.     for(int i=0;i<rzs*2;i++)
  22.         vecs.push_back(Turtle(d.getCenter(),i*fap3d::globals::PI/rzs+transangle));
  23.     for(;i<200;)
  24.     {
  25.         tr.moveForward(i);
  26.         tr.left(fap3d::globals::PI/rzs);
  27.         i+=1;
  28.         for(int i=0;i<rzs*2;i++)
  29.             vecs.at(i).moveForward(3);
  30.         Sleep(2);
  31.     }
  32.     _getch();
  33.     return 0;
  34. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top