Skip to content

Latest commit

 

History

History
56 lines (26 loc) · 873 Bytes

ImageFace.md

File metadata and controls

56 lines (26 loc) · 873 Bytes

#ImageFace Class

Purpose

Contains image information for a single voxel face. Used by the Mesh class.

Base Classes

EventListener

Constructor

ImageFace()

Creates an image face containing a transparent gif.

ImageFace(source)

Creates an image face containing the provided source.

Static Properties

loadFromSerial(serial)

serial — A string serialization from a ImageFace instance.

Returns a new ImageFace instance built from the serialized data.

Properties

setSource(src)

src — The new image source.

Sets the current source of the instance.

getSource()

Returns the current ImageFace's source.

serialize()

Returns a string serialization of the ImageFace's data.

clone()

Returns a new ImageFace instance containing the same data.

Events

  • onchange