Scratch for Java

Shaders::activate()

Draws with the shader of the given name as well, without stopping the others. Active shaders take turns in the order they were added, each working on what the one before it drew, so a stage can be tinted and wobble at the same time. A sprite draws with the first of its active shaders only.

Examples

View on GitHub

Syntax

Java

.activate(name)

Parameters

Name Data Type Description
name String the name of the shader

Return

void

activate()

Create Shareable URL

Select Sections