Square

data class Square(val start: Point, val length: Expression) : Rectangle

Instruction that draws a square with a given side lengthing from its top left Point.

Parameters

start

The top-left Point of the square.

length

An Expression representing the side length of the square.

Constructors

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

Functions

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

Properties

Link copied to clipboard
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