Sprite constructor
Sprite(
- Texture sheetTexture,
- Vector2 texturePos,
- Vector2 textureSize, [
- Vector4? colors,
Implementation
Sprite(this.sheetTexture, this.texturePos, this.textureSize, [Vector4? colors]) {
if(colors != null) {
this.colors = colors;
}
}