Image

indigo.shared.assets.AssetType.Image
See theImage companion object
final case class Image(name: AssetName, path: AssetPath, tag: Option[AssetTag]) extends AssetTypePrimitive

Represents any browser compatible image asset

Value parameters

name

the asset name used to look up the loaded asset

path

the path to the asset

tag

Images can optionally be "tagged", this tells indigo that images with the same tag should be grouped together for more efficient use. E.g. you might tag all the images for a given level with the same tag.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AssetType
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def noTag: Image
def toList: List[AssetType]
def withTag(tag: AssetTag): Image

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product