Module image

NColor implementation

Types

NColor = distinct uint32
ImageObj = object of RootObj
  width*: int
  height*: int
  data*: seq[NColor]
Image = ref ImageObj

Procs

proc `$`(color: NColor): string {.raises: [FormatError], tags: [].}
proc `==`(c1, c2: NColor): bool {.raises: [], tags: [].}
proc `[]`(img: Image; row, col: int): NColor {.raises: [], tags: [].}
proc `[]=`(img: Image; row, col: int; val: NColor) {.raises: [], tags: [].}
proc create_image(width, height: int): Image {.raises: [], tags: [].}