Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tips for HW6.

Similar presentations


Presentation on theme: "Tips for HW6."— Presentation transcript:

1 Tips for HW6

2 HW6 See pinned post on for using FLTK graphics. A simple example is provided.

3 Relation between files

4 How to make compiling faster?
It is slow using this way: g –std=c++11 *.cpp –lfltk –lfltk_images Common used files do not need re-compile again each time. (GUI.cpp, Graph.cpp, Simple_window.cpp, Window.cpp) We can compile them into object code file, g –std=c++11 –c GUI.cpp Graph.cpp Simple_window.cpp Window.cpp Then we can simply compile using this: g –std=c++11 sample_main4.cpp *.o –lfltk –lfltk_images

5 PR1 Here is one example, you can draw the house as you wish.

6 PR2 http://math.nmsu.edu/~pmorandi/CourseMaterials/OlympicRings.html
Don't worry about making the circles overlap correctly

7 PR3

8 PR3 The point of the exercise is to compute the size and location of the rectangles rather than explicitly hardcode that information. This means thinking about scale and offsets. Framework for this problem:

9 PR4

10 PR4 The official proportions of the Texas flag are as follows: each colored panel (red, white, and blue) has dimensions in the ratio 1 to 2, e.g., the blue panel is twice as tall as it is wide.


Download ppt "Tips for HW6."

Similar presentations


Ads by Google