Scratch for Java

Pen::setPosition()

Moves the pen, drawing a line from where it was if it is down.

Examples

View on GitHub

Syntax

Java

.setPosition(x, y)
.setPosition(position)

Parameters

Name Data Type Description
x double world x
y double world y
position Vector2 world position

Return

void

setPosition()

Create Shareable URL

Select Sections