Scenic.Primitive.Style.Paint.Image (Scenic v0.10.3) View Source

Fill a primitive with an image from Scenic.Cache.Static.Texture

Full Format

Image paint accepts several variations. In each case, the hash is a key referencing an image that has been loaded into Scenic.Cache.Static.Texture.

  • {:image, hash} - Show the full image
  • {:image, {hash, alpha}} - Show the full image with transparency
  • {:image, {hash, start_x, start_y, end_x, end_y, angle, alpha}}