|
|
|
@ -25,11 +25,7 @@ int image_check_coords(Image image, int x, int y);
|
|
|
|
|
|
|
|
|
|
int image_destroy(Image image);
|
|
|
|
|
|
|
|
|
|
// drawing
|
|
|
|
|
|
|
|
|
|
int image_draw_rect(Image image, int x1, int y1, int x2, int y2, Color color);
|
|
|
|
|
int image_draw_circ(Image image, int x, int y, int r, Color color);
|
|
|
|
|
int image_draw_square(Image image, int x, int y, int s, Color color);
|
|
|
|
|
// colors
|
|
|
|
|
|
|
|
|
|
Color color_new(int r, int g, int b);
|
|
|
|
|
Color color_new_alpha(int r, int g, int b, float alpha);
|
|
|
|
@ -38,6 +34,14 @@ void print_color(Color c);
|
|
|
|
|
|
|
|
|
|
Color color_mix(Color c1, Color c2, float ratio);
|
|
|
|
|
|
|
|
|
|
// drawing
|
|
|
|
|
|
|
|
|
|
int image_draw_rect(Image image, int x1, int y1, int x2, int y2, Color color);
|
|
|
|
|
int image_draw_circ(Image image, int x, int y, int r, Color color);
|
|
|
|
|
int image_draw_square(Image image, int x, int y, int s, Color color);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// bmp format specifics:
|
|
|
|
|
int image_save_bmp(Image image, char* path);
|
|
|
|
|
|
|
|
|
|