Scratch for Java

Shaders::switchTo()

Switches to the shader with the given name.

Syntax

Java

.switchTo(name)
.switchTo(index)

Parameters

Name Data Type Description
name String the name of the shader
index double the position of the shader

Return

void

switchTo()

Create Shareable URL

Select Sections