Scratch for Java

Rectangle()

Represents a rectangle shape defined by its position and size.

Examples

View on GitHub

Syntax

Java

new Rectangle(x, y, width, height)
Rectangle()

Create Shareable URL

Select Sections