Scratch for Java

Shader::set()

This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.

Syntax

Java

.set(name, x)
.set(name, x)
.set(name, x)
.set(name, x, y)
.set(name, x, y)
.set(name, x, y)
.set(name, vec)
.set(name, values, ncoords)
.set(name, values, ncoords)
.set(name, c)

Parameters

Name Data Type Description
name String
x int
y int
vec Vector2
values int[]
ncoords int
c Color

Return

void

set()

Create Shareable URL

Select Sections