Scratch for Java

Drawing::polygon()

A filled polygon.

Examples

View on GitHub

Syntax

Java

.polygon(x, y, color)

Parameters

Name Data Type Description
x double[] x of every corner
y double[] y of every corner
color Color the fill

Return

void

polygon()

Create Shareable URL

Select Sections