aldrin

πŸ‘©β€πŸ¦° Aldrin Documentation

Table of Contents - [πŸ‘©β€πŸ¦° Aldrin Documentation](#-aldrin-documentation) - [API Reference](#api-reference) - [`Aldrin_Canvas`](#aldrin_canvas) - [`aldrin_put_pixel()`](#aldrin_put_pixel) - [`aldrin_fill()`](#aldrin_fill) - [`aldrin_draw_line()`](#aldrin_draw_line) - [`aldrin_draw_triangle()`](#aldrin_draw_triangle) - [`aldrin_fill_triangle()`](#aldrin_fill_triangle) - [`aldrin_draw_ellipse()`](#aldrin_draw_ellipse) - [`aldrin_fill_ellipse()`](#aldrin_fill_ellipse) - [`aldrin_draw_circle()`](#aldrin_draw_circle) - [`aldrin_fill_circle()`](#aldrin_fill_circle) - [`aldrin_draw_rectangle()`](#aldrin_draw_rectangle) - [`aldrin_fill_rectangle()`](#aldrin_fill_rectangle) - [`aldrin_draw_square()`](#aldrin_draw_square) - [`aldrin_fill_square()`](#aldrin_fill_square) - [`aldrin_text()`](#aldrin_text) - [`aldrin_get_pixels()`](#aldrin_get_pixels) - [`aldrin_get_width()`](#aldrin_get_width) - [`aldrin_get_height()`](#aldrin_get_height) - [`aldrin_save_ppm()`](#aldrin_save_ppm)

API Reference

Aldrin_Canvas

static uint32_t pixels[WIDTH*HEIGHT];

Aldrin_Canvas ac = { pixels, WIDTH, HEIGHT };


### `aldrin_put_pixel()`
* Puts a pixel on the canvas.
* Syntax: aldrin_put_pixel(ac, x, y, color)
* Parameters:
  - `ac`: `Aldrin_Canvas`
  - `x`: `uint32_t`: x coordinate of pixel
  - `y`: `uint32_t`: y coordinate of pixel
  - `color`: `uint32_t`: color code of pixel
* Example: 
```c
aldrin_put_pixel(ac, 100, 100, 0x00ff00);

aldrin_fill()

aldrin_draw_line()

aldrin_draw_triangle()

aldrin_fill_triangle()

aldrin_draw_ellipse()

aldrin_fill_ellipse()

aldrin_draw_circle()

aldrin_fill_circle()

aldrin_draw_rectangle()

aldrin_fill_rectangle()

aldrin_draw_square()

aldrin_fill_square()

aldrin_text()

aldrin_get_pixels()

aldrin_get_width()

aldrin_get_height()

aldrin_save_ppm()