Sprite constructor

Sprite(
  1. Texture sheetTexture,
  2. Vector2 texturePos,
  3. Vector2 textureSize, [
  4. Vector4? colors,
])

Implementation

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