10 lines
332 B
C
10 lines
332 B
C
#include <stdio.h>
|
|
#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_save_ppm(painter, "./surface.ppm");
|
|
lp_painter_free(painter);
|
|
}
|