Scratch for Java

Shaders::switchTo()

Switches to the shader with the given name, or with the given position in the order the shaders were added. A name that is not there leaves the current shader and prints which ones there are.

Examples

View on GitHub

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