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 Serializabletrait Producttrait Equalstrait AssetTypePrimitivetrait AssetTypeclass Objecttrait Matchableclass Any
Members list
In this article