Icon

Up and coming: shot check knows this datatype and its members today, and programs run it once the native runtime lands.

Up and coming

Every picture in a window: a file, bytes in memory, a tile of a sprite sheet, an animated strip or a built-in glyph.

Icon.Static takes a path or the bytes of a PNG, JPG or BMP file, with an optional rect to pick a sheet tile. Icon.Animated adds a frame count, layout and length, and plays with no script loop. Icon.Builtin names a glyph drawn for you: Close, Check, ChevronDown, ChevronRight, Play, Stop, Copy, Search, Folder, File, Warning or Spinner.

Constructors

NameArgumentsReturnsDescription
Icon.Static(data: IconData)Icon
Icon.Animated(data: IconData, animation: { FrameCount: number, Layout: Vector2, Length: number, Pixelated: boolean? })Icon
Icon.Builtin(name: BuiltinIcon)Icon