Sprites namespace
- Source:
Classes
Methods
-
<static> spriteImgObj#addSprite(src [, onload])
-
Add sprite to the Sprite Image Array.
This:
- Sprites.spriteImgObj
Parameters:
Name Type Argument Description srcstring | Object Source of sprite. If
srcis a string representing a url, then the image added has its source assrc. Ifsrcis an object, then the source issrc.src. This means that any object with ansrcproperty can be added.onloadfunction <optional>
a function that is executed when the image loads.
- Source:
Returns:
- Type
- Image