Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "fap3d.h"
- #include <windows.h>
- #include <vector>
- #include <ctime>
- #include <random>
- using namespace fap3d::setup;
- using namespace fap3d::shapes::bidimensional;
- using namespace fap3d::colors;
- using namespace fap3d;
- int rzs = 8;
- int main() {
- Window d = Window(0,0,900,600);
- d.open();
- Turtle tr = Turtle(d.getCenter());
- double i=0;
- std::vector<Turtle> vecs;
- double transangle = fap3d::globals::PI/16;
- for(int i=0;i<rzs*2;i++)
- vecs.push_back(Turtle(d.getCenter(),i*fap3d::globals::PI/rzs+transangle));
- for(;i<200;)
- {
- tr.moveForward(i);
- tr.left(fap3d::globals::PI/rzs);
- i+=1;
- for(int i=0;i<rzs*2;i++)
- vecs.at(i).moveForward(3);
- Sleep(2);
- }
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement