Difference between revisions of "Road Signs, Easy"

From Progzoo
Jump to: navigation, search
Line 6: Line 6:
 
The yellow square has side 150, the radius of the corner is 40.
 
The yellow square has side 150, the radius of the corner is 40.
 
The black square is 100, the line width is 16.
 
The black square is 100, the line width is 16.
The yellow is rgb(255,227,0).
+
The yellow is rgb(255,227,0)..
 
</p>
 
</p>
 
<img src="/img/roaddiversionsquare.png" alt="Black Square Outline on Yellow"/>
 
<img src="/img/roaddiversionsquare.png" alt="Black Square Outline on Yellow"/>

Revision as of 15:12, 16 November 2007

Each of these road signs is worth 9 points.

Diversion Square

Draw the yellow square using <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html#fillRoundRect(int,%20int,%20int,%20int,%20int,%20int)">fillRoundRect</a> The yellow square has side 150, the radius of the corner is 40. The black square is 100, the line width is 16. The yellow is rgb(255,227,0)..

<img src="/img/roaddiversionsquare.png" alt="Black Square Outline on Yellow"/>



[Font] [Default] [Show] [Resize] [History] [Profile]

No Entry

Red circle with white rounded rectangle. The red disk has diameter 150. The rectangle is 130 by 30, the corner radius is 10.

<img style="border-style:solid;border-width:thin" src="/img/roadnoentry.png" alt="No entry"/>



[Font] [Default] [Show] [Resize] [History] [Profile]

No Waiting

The circle has diameter 150, the border and band are 16 wide. Red is rbg(235,21,28) blue is rgb(0,111,187).

<img style="border-style:solid;border-width:thin" src="/img/roadnowaiting.png" alt="No Waiting"/>



[Font] [Default] [Show] [Resize] [History] [Profile]

No Through Road

The blue sign is 150 by 150 the corners have radius 10. The leg of the T is 22 by 88. The top of the T is 76 by 28. The white border around the red rectangle is 2 wide. The colour red is rgb(225,0,21), blue is rgb(7,89,172).

<img style="border-style:solid;border-width:thin" src="/img/roadnothroughroad.png" alt="No Through Road"/>



[Font] [Default] [Show] [Resize] [History] [Profile]

Road Warning

The base of the triangle is 120. The height of the triangle is (int)(120*Math.sqrt(3)/2) The border is 12 wide.

<img src="/img/roadwarning.png" alt="Red triangle."/>



[Font] [Default] [Show] [Resize] [History] [Profile]