ImageMeshColor is a type of mesh color that represents an image mapped to the mesh by its uv vertex attributes. ImageMeshColor instances can be used with the MeshComponent.material.color property. Images can be referred to either by url or directly by data ( image element, canvas element or ImageData).
A direct reference to the image data.more details
The name of the class.more details
Indicates whether the image data should be interpreted as being semi-transparent.more details
|String||For ImageMeshColor the type is always "image". more details||more details||ImageMeshColor|
The url to the image resource.more details
The data property is mutually exclusive with the url property, setting the data will clear the url (if there is one).
The name of the class. The declared class name is formatted as
Indicates whether the image data should be interpreted as being semi-transparent. The default value is automatically derived when the data property contains a canvas element or an ImageData object. If instead a url to a .png file was provided, it is assumed that transparency is present. In all other cases it defaults to
- Default Value:undefined
- url String
The url to the image resource. This can either be a remote url (absolute or relative) or a data url.
The url property is mutually exclusive with the data property, setting the url will clear the data (if there is one).
Creates a deep clone.more details
API Reference search results