Skip to content

Commit e74285d

Browse files
committed
minimal.c: add comment explaining the example
1 parent 80ff026 commit e74285d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/minimal.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
#include "libmypaint.c"
22
#include "mypaint-fixed-tiled-surface.h"
33

4+
/*
5+
6+
This example draws a rectangle on a fixed surface, using the default brush.
7+
It only uses pre-v1.5.0 interfaces/structures.
8+
9+
Compiling and running it will produce a file called "output.ppm".
10+
Open it in a compatible image viewer to see the result.
11+
12+
The ppm format is _very_ space-inefficient, so only use low resolutions.
13+
14+
*/
15+
416
void
517
stroke_to(MyPaintBrush *brush, MyPaintSurface *surf, float x, float y)
618
{

0 commit comments

Comments
 (0)