Difference between revisions of "CSC111 Final Exam 2018"
Line 102: | Line 102: | ||
* Note: To change the color of a '''line''' with the graphics library, you should use the '''setOutline()''' method rather than the '''setFill()''' method. To change the '''width''' of a line, you can use the '''setWidth()''' method. | * Note: To change the color of a '''line''' with the graphics library, you should use the '''setOutline()''' method rather than the '''setFill()''' method. To change the '''width''' of a line, you can use the '''setWidth()''' method. | ||
* I used only 3 colors to generate the tree above: "green", "blue", and "brown". | * I used only 3 colors to generate the tree above: "green", "blue", and "brown". | ||
+ | * The oranges have radius 10. | ||
<br /> | <br /> | ||
::<source lang="python"> | ::<source lang="python"> |