+ Universe *universe = new Universe(10, world_width, world_height);
+
+ scalar_t x[] = {
+ world_width * 0.5 - square_size * 0.5,
+ world_width * 0.5 + square_size * 0.5,
+ world_width * 0.5 + square_size * 0.5,
+ world_width * 0.5 - square_size * 0.5,
+ };
+
+ scalar_t y[] = {
+ world_height * 0.5 - square_size * 0.5,
+ world_height * 0.5 - square_size * 0.5,
+ world_height * 0.5 + square_size * 0.5,
+ world_height * 0.5 + square_size * 0.5,
+ };
+
+ Polygon *pol = new Polygon(0.5, 1.0, 1.0, 0.0, x, y, 4);
+ pol->set_position(world_width * 0.5, world_height * 0.5, M_PI/3);
+ pol->set_speed(0, 0, 0);
+ universe->initialize_polygon(pol);
+ universe->add_polygon(pol);
+
+ {
+ FILE *file = fopen("universe1.png", "w");
+ generate_png(universe, 0.25, file);
+ }
+
+ scalar_t hand_x = world_width * 0.5;
+ scalar_t hand_y = world_height * 0.5;
+ Polygon *grabbed_polygon = universe->pick_polygon(hand_x, hand_y);
+ scalar_t grab_relative_x = grabbed_polygon->relative_x(hand_x, hand_y);
+ scalar_t grab_relative_y = grabbed_polygon->relative_y(hand_x, hand_y);
+
+ {
+ FILE *file = fopen("universe2.png", "w");
+ generate_png(universe, 0.25, file);
+ }
+
+ delete universe;