These three tools for drawing geometric shapes: Rectangle (Rectangle Tool (R)), Oval (Oval Tool (O)) and Polygon (PolyStar Tool) are on the Tools Panel, all in the "Rectangle" button (see the image below). They are used to quickly draw simple geometric shapes.

Rectangle, Oval, Polygon Tools
To select one of the tools "hidden" in the Rectangle Tool button, click and hold it.
They are easy to use; you just click and drag on the Stage to create the shapes.
There are two types of tools to each rectangle and oval: Standard and those with Primitive (as shown in the image above).
The Standard Tools have the two main options for drawing: "Merge Drawing" and "Object Drawing", which can be changed in the options area of the Tools panel, for more details see Merge Drawing and Object Drawing.

1. The shapes drawn with Standard tools have two main elements that can be selected and modified separately or together: the stroke (margin line) and the fill.

2. Primitive tools ("Primitive Rectangle Tool" and "Oval Primitive Tool") have a single drawing mode, similar with "Object Drawing", but the edge line and Fill are united in a single element, they can't be selected separately.
The Primitive shape tools allow you to specify the corner radius of rectangles, and the start and end angle and the inner radius of ovals using controls in the Properties Panel.

You can draw shapes with no line or no fill by choosing colorless button -> colorless, located in the top-right of the "Stroke Color" and "Fill Color" pannels.

Line and Fill

Rectangle, Oval, Polygon Tools

Rectangle and Oval

The Rectangle tool creates rectangles with square or rounded corners. The Oval tool creates circular shapes such as ovals and circles.
Properties, such as size, color, border line, can be modified in the Properties panel.
In the next picture you can find explanations about the properties that can be set.

Properties for Rectangle and Oval

Properties for Rectangle and Oval
- The settings from "Rectangle Options" and "Oval options" can be defined after the "Rectangle Tool" (or "Oval Tool") was selected, but before to draw the shape.
These options can not be set or changed after the shape was drawn with Standard tools (except the shapes drawn with Primitive, which allows you to set these options after drawing).

You can hold down the Shift key while dragging to produce a perfect square with equal sides or a perfect circle.
- You can set specific sizes with a dialog box. Alt+click after you select "Rectangle tool" (or "Oval tool"), set the values you want, and then click OK.

Polygon - Star (PolyStar)

Polystar tool allows you to easily create complex vector shapes.
You can use this tool to create polygons and stars. Both styles have characteristics that can be defined in the "Properties panel" before you draw the shape.
Both the polygon and star style can have up to 32 sides.
Experiment with several options to get the kind of shape you want.

PolyStar options

PolyStar options
- Click and hold the "Rectangle tool" on the Tools panel, and then point to PolyStar Tool.
- Click Options in the "Properies panel".
- Click the Style list arrow, and then select Polygon or Star.
- Enter a value for the number of sides (from 3 to 32).
- For the Star style, you can specify an additional option for Star point size. You can enter a value ranging from 0.1 to 1.0 points.
- Click OK, drag on the Stage, and then release the mouse.
See the example in the image below.
Polystar example

After it has been drawn a polygon, or star, the settings for sides and "Star Point Size" can not longer be changed from the Properties.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Click on the tag that creates an ordered list
<ul> <tr> <ol>
<ol>
  <li>List-1</li>
  <li>List-2</li>
</ol>
Which selector represents the ID of an element in CSS
.name #name name
#id {
  color: #0110fb;
}
What statement creates an object in JavaScript?
{} [] new Date()
var obj = {"site": "CoursesWeb.net", "pr": 5};
alert(obj.site);
Indicate the instruction used to evaluate if a condiition is True or False
else if() switch()
$var = 8;
if($var == 8) echo $var;
Rectangle, Oval, Polygon - Star

Last accessed pages

  1. The Number and Math Objects (344)
  2. Download JavaScript resources (2345)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (33344)
  4. Recursive function to create Multi-Level Menu in PHP (4811)
  5. Zuma Deluxe (20392)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (49682)
  2. Read Excel file data in PHP - PhpExcelReader (38072)
  3. PHP-MySQL free course, online tutorials PHP MySQL code (37003)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (33344)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (30742)