diff options
Diffstat (limited to 'libdimension/canvas.c')
-rw-r--r-- | libdimension/canvas.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libdimension/canvas.c b/libdimension/canvas.c index c2bd5cf..8d37c73 100644 --- a/libdimension/canvas.c +++ b/libdimension/canvas.c @@ -55,25 +55,3 @@ dmnsn_delete_canvas(dmnsn_canvas *canvas) free(canvas); } } - -/* Get a pixel at (x,y) */ -dmnsn_color -dmnsn_get_pixel(const dmnsn_canvas *canvas, unsigned int x, unsigned int y) -{ - return canvas->pixels[y*canvas->x + x]; -} - -/* Set a pixel at (x,y) */ -void -dmnsn_set_pixel(dmnsn_canvas *canvas, - unsigned int x, unsigned int y, dmnsn_color color) -{ - canvas->pixels[y*canvas->x + x] = color; -} - -/* Point to the pixel at (x,y) */ -dmnsn_color * -dmnsn_pixel_at(dmnsn_canvas *canvas, unsigned int x, unsigned int y) -{ - return canvas->pixels + y*canvas->x + x; -} |