Scratch for Java

Canvas::setOpacity()

Browser availability: desktop-only.

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

Syntax

Java

.setOpacity(opacity)

Parameters

Name Data Type Description
opacity double how opaque what follows is drawn, 0 to 1

Return

void

setOpacity()

Create Shareable URL

Select Sections