Drawing a Boring Triangle
source link: http://programmingbydoing.com/a/drawing-a-triangle.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
- Author: Graham Mitchell
- Filename: BoringTriangle.java
Drawing a Boring Triangle
Write a program that displays a solid purple triangle
on the screen. The size and position of the triangle do not
matter, but it must be purple (or some other color that isn't
built-in), and you must use fillPolygon()
to do it.
Here is a working example version:
©2013–2015 Graham Mitchell
This assignment is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK