proc free(palette: Palette) {...}{.raises: [], tags: [].}
-
proc init(palette: var Palette; ncolors: int) {...}{.raises: [], tags: [].}
-
proc ncolors(palette: Palette): int {...}{.raises: [], tags: [].}
-
Get the number of colors in palette.
proc `[]`(palette: Palette; i: int): Color {...}{.raises: [IndexError], tags: [].}
-
Get the i'th color from the palette.
proc `[]=`(palette: Palette; i: int; colors: openArray[Color]) {...}{.raises: [IndexError],
tags: [].}
-
Change colors in the palette starting with i'th color.
proc `[]=`(palette: Palette; i: int; color: Color) {...}{.raises: [IndexError], tags: [].}
-
Change i'th color in the palette.
proc free(image: IndexedImage) {...}{.raises: [], tags: [].}
-
proc init(image: IndexedImage) {...}{.raises: [], tags: [].}
-
proc load(image: IndexedImage; file: string): bool {...}{.raises: [], tags: [].}
-
Load image``graphic source from a ``file.
proc load(image: IndexedImage; src: ptr RWops; freeSrc: bool = true): bool {...}{.raises: [],
tags: [].}
-
Load image``graphic source from a ``src RWops.
proc newIndexedImage(): IndexedImage {...}{.raises: [], tags: [].}
-
proc newIndexedImage(file: string): IndexedImage {...}{.raises: [], tags: [].}
-
Create a new IndexedImage and load it from a file.
proc newIndexedImage(src: ptr RWops; freeSrc: bool = true): IndexedImage {...}{.raises: [],
tags: [].}
-
Create a new IndexedImage and load it from a src RWops.
proc palette(image: IndexedImage): Palette {...}{.inline, raises: [], tags: [].}
-
Get the current palette of the image.
proc palette=(image: IndexedImage; palette: Palette) {...}{.inline, raises: [], tags: [].}
-
Assign a new palette to the image.
proc render(image: IndexedImage): Texture {...}{.inline, raises: [], tags: [].}
-
Return a new Texture created from indexed image.