Package-level declarations

Types

Link copied to clipboard
data class Circle(val center: Point, val radius: Expression) : Ellipse

Instruction that draws a circle with a given radius and center.

Link copied to clipboard
open class Ellipse(val center: Point, val width: Expression, val height: Expression) : FigureInstruction

Instruction that draws an ellipse with a given width, height, and center.

Link copied to clipboard
open class FigureInstruction(val start: Point) : Instruction

Generic figure instruction. Defines the top-left Point as the start of the figure.

Link copied to clipboard
data class Line(val start: Point, val end: Point) : FigureInstruction

Instruction that draws a line between the start and ends.

Link copied to clipboard
data class Polyline(val start: Point, val points: List<Point>) : FigureInstruction

Instruction that draws a polyline from a given start and a list of points.

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

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