SpriteComponent.rectangle constructor

SpriteComponent.rectangle(
  1. double width,
  2. double height,
  3. String imagePath
)

Implementation

SpriteComponent.rectangle(double width, double height, String imagePath)
    : this.fromSprite(width, height, Sprite(imagePath));