Scratch for Java

Drawing::clip()

Draws only inside a rectangle until noClip(); a turned sprite clips to the rectangle around the turned one.

Examples

View on GitHub

Syntax

Java

.clip(x, y, width, height)

Parameters

Name Data Type Description
x double x of its centre
y double y of its centre
width double its width
height double its height

Return

void

clip()

Create Shareable URL

Select Sections