Skip to content

Commit

Permalink
minimal.c: add comment explaining the example
Browse files Browse the repository at this point in the history
  • Loading branch information
jplloyd committed Feb 23, 2020
1 parent 80ff026 commit e74285d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/minimal.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#include "libmypaint.c"
#include "mypaint-fixed-tiled-surface.h"

/*
This example draws a rectangle on a fixed surface, using the default brush.
It only uses pre-v1.5.0 interfaces/structures.
Compiling and running it will produce a file called "output.ppm".
Open it in a compatible image viewer to see the result.
The ppm format is _very_ space-inefficient, so only use low resolutions.
*/

void
stroke_to(MyPaintBrush *brush, MyPaintSurface *surf, float x, float y)
{
Expand Down

0 comments on commit e74285d

Please sign in to comment.