Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- #include "Bridges.h"
- #include "Color.h"
- #include "ColorGrid.h"
- using namespace bridges;
- int main() {
- // BRIDGES initializations
- Bridges *bridges = new Bridges (YOUR_ASSIGNMENT_NUMBER, "YOUR_USER_ID", "YOUR_API_KEY");
- bridges->setTitle("A Color Grid Example");
- // create a color grid
- ColorGrid *cg = new ColorGrid(500, 500, Color("red"));
- // draw a green square
- for (int k = 75; k < 150; k++)
- for (int j = 75; j < 150; j++)
- cg->set(k, j, Color("green"));
- bridges->setDataStructure(cg);
- bridges->visualize();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement