Rectangle

open class Rectangle(val start: Point, val width: Expression, val height: Expression) : FigureInstruction

Instruction that draws a rectangle with a given width and heighting from its top left Point.

Parameters

start

The top-left Point of the rectangle.

width

An Expression representing the width of the rectangle.

height

An Expression representing the height of the rectangle.

Inheritors

Constructors

Link copied to clipboard
constructor(start: Point, width: Expression, height: Expression)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
open override var parent: Instruction?
Link copied to clipboard
open override val start: Point
Link copied to clipboard