BufferPolygonMaterial

open external class BufferPolygonMaterial(options: BufferPolygonMaterialOptions? = definedExternally)(source)

Material description for a BufferPolygon.

BufferPolygonMaterial objects are {@link Packable|packable}, stored when calling BufferPolygon.setMaterial. Subsequent changes to the material will not affect the polygon until setMaterial() is called again.

See also

Constructors

Link copied to clipboard
constructor(options: BufferPolygonMaterialOptions? = definedExternally)

Properties

Link copied to clipboard

Color of fill.

Link copied to clipboard

Color of outline.

Link copied to clipboard

Width of outline, 0-255px.

Functions

Link copied to clipboard
fun toJSON(): JsAny

Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.