class Drawable: Component

Represents the visual for an actor. Used by Spectrum and Geometer to render actors.

index: string | integer

an index into a SpriteAtlas

color: Color4
background: Color4
size: integer
__new(
    self: Drawable,
    index: string | integer | DrawableOptions,
    color?: Color4,
    background?: Color4,
    layer?: integer,
    size?: integer
)

Index needs to be a string associated with a sprite in the SpriteAtlas, or an integer index associated with a sprite.

layer: integer
class DrawableOptions
char: string | integer
color: Color4?
background: Color4?
layer: integer?
size: integer?