## Table of Contents

# Shapes

The Shape object allows you to add, move and rotate shapes to the Graphics window.

## Operations

### AddRectangle

Shapes.AddRectangle(width, height)

Adds a rectangle shape with the specified width and height.

### AddEllipse

Shapes.AddEllipse(width, height)

Adds an ellipse shape with the specified width and height.

### AddTriangle

Shapes.AddTriangle(x1, y1, x2, y2, x3, y3)

Adds a triangle shape represented by the specified points.

#### x1

The x co-ordinate of the first point.#### y1

The y co-ordinate of the first point.#### x2

The x co-ordinate of the second point.#### y2

The y co-ordinate of the second point.#### x3

The x co-ordinate of the third point.#### y3

The y co-ordinate of the third point.#### Returns

The Triangle shape that was just added to the Graphics Window.### AddImage

Shapes.AddImage(imageName)

Adds an image as a shape that can be moved, animated or rotated.

### Rotate

Shapes.Rotate(shapeName, angle)

Rotates the shape with the specified name to the specified angle.

### Zoom

Shapes.Zoom(shapeName, scaleX, scaleY)

Scales the shape using the specified zoom levels. Minimum is 0.1 and maximum is 20.

### Animate

Shapes.Animate(shapeName, x, y, duration)

Animates a shape with the specified name to a new position.