#include #include "painter.h" int main() { 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_line(painter, lp_rgb(0, 255, 0), 0, 511, 511, 0); lp_painter_save_ppm(painter, "./surface.ppm"); lp_painter_free(painter); }