var
This commit is contained in:
parent
9095e6e4bc
commit
b3999b0598
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ proc dataIndex*(image: Image, x, y: int): int {.inline, raises: [].} =
|
||||||
template unsafe*(src: Image): UnsafeImage =
|
template unsafe*(src: Image): UnsafeImage =
|
||||||
cast[UnsafeImage](src)
|
cast[UnsafeImage](src)
|
||||||
|
|
||||||
template `[]`*(view: UnsafeImage, x, y: int): ColorRGBX =
|
template `[]`*(view: UnsafeImage, x, y: int): var ColorRGBX =
|
||||||
## Gets a color from (x, y) coordinates.
|
## Gets a color from (x, y) coordinates.
|
||||||
## * No bounds checking *
|
## * No bounds checking *
|
||||||
## Make sure that x, y are in bounds.
|
## Make sure that x, y are in bounds.
|
||||||
|
|
Loading…
Reference in a new issue