Skip to content

CustomMaterial()

Description

Constructor of the CustomMaterial type.

Syntax

JS
new CustomMaterial(color: String = "red") -> CustomMaterial

Parameters

Parameter Type Default Value Optional Description
color #JavaScript String "red" No Material color.

Return value

Type Description
#JavaScript CustomMaterial An object of type CustomMaterial.

Example

JS
let m = new CustomMaterial()
console.info(m)

See also

Last update: 14 August 2025, 18:47