Scratch for Java

Drawing::image()

An image at its own size, centred on a point.

Examples

View on GitHub

Syntax

Java

.image(path, x, y)
.image(path, x, y, width, height)

Parameters

Name Data Type Description
path String an image file or a built-in sprite name
x double x of its centre
y double y of its centre
width double the width
height double the height

Return

void

image()

Create Shareable URL

Select Sections