Scratch for Java

Polygon()

Represents a polygon shape defined by its vertices.

Examples

View on GitHub

Syntax

Java

new Polygon()
new Polygon(xPoints, yPoints)
Polygon()

Create Shareable URL

Select Sections