Scratch for Java

Diese Seite ist noch nicht übersetzt. Sie wird in ihrer Originalsprache angezeigt.

Canvas::drawOutline()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

The outline of a polygon.

Syntax

Java

.drawOutline(xs, ys, stroke, weight)

Parameters

Name Data Type Description
xs double[] x of every corner
ys double[] y of every corner
stroke Color the outline's colour
weight double the outline's width

Return

void

drawOutline()

Teilbare URL erstellen

Abschnitte auswählen