libpaint/main.c

11 lines
332 B
C
Raw Normal View History

2022-08-15 02:05:36 +03:00
#include <stdio.h>
2022-08-15 22:38:04 +03:00
#include "painter.h"
2022-08-15 02:05:36 +03:00
int main() {
2022-08-15 22:38:04 +03:00
lp_painter *painter = lp_painter_create(512, 512);
lp_painter_fill_rect(painter, lp_rgb(255, 0, 0), 0, 0, 512, 512);
lp_painter_fill_rect(painter, lp_rgb(0, 0, 255), 0, 25, 103, 40);
lp_painter_save_ppm(painter, "./surface.ppm");
lp_painter_free(painter);
2022-08-15 02:05:36 +03:00
}