Removed Image:mapPixel(), updated doc/api.md

This commit is contained in:
rxi
2016-09-26 20:33:26 +01:00
parent 2d05d16db9
commit 030695e0db
2 changed files with 0 additions and 25 deletions

View File

@@ -220,11 +220,6 @@ position is outside of the image then 0 is returned.
Sets the pixel of the image at the position `x`, `y` to `color`. If the
position is outside of the image then no change is made.
##### Image:mapPixel(fn)
Takes the function `fn` which is called for each pixel of the image and is
given the arguments `x`, `y` and `color`: The position of the current pixel and
its color. Each pixel will be set to the color returned by this function.
### Quad
A rectangle used to represent the clipping region of an image when drawing.