ImageLoader

tyrian.cmds.ImageLoader
object ImageLoader

Given a path, this cmd will load an image and return an HTMLImageElement for you to make use of.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Result

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def load[F[_] : Async, Msg](path: String)(resultToMessage: Result => Msg): Cmd[F, Msg]

Load an image from the given path and produce a message

Load an image from the given path and produce a message

Attributes