N E W

ArrayNode

Last modified: Dec 9, 2025

ArrayNode represents a collection of nodes, typically created using the {@link array} function.

const colors = array( [ vec3( 1, 0, 0 ), vec3( 0, 1, 0 ), vec3( 0, 0, 1 ) ] ); const redColor = tintColors.element( 0 );

Constructor

new ArrayNode(nodeType, count, values?)
ParameterTypeDefault Value
nodeTypenull | string
countnumber
values?null | Array<Node>null

Constructs a new array node.

AccessorTypeModifiers
get typestringstatic
MethodTypeModifiers

Extends

TempNode
N E W

array

ParameterTypeDefault Value
params...Array<any>

Returns

ArrayNode