Scratch for Java

Triangle()

Represents a triangle shape defined by three vertices.

Examples

View on GitHub

Syntax

Java

new Triangle(x1, y1, x2, y2, x3, y3)
Triangle()

Create Shareable URL

Select Sections