xlib-draw is a small program, written
with the x-lib for the ui
it uses the small p1-image lib _ilb13
this is beginner-code with errors, but the source code will maybe be easier to read, than the code of experienced programmers
Files:
$ gcc -o xlib_draw xlib_draw.c -lX11 -L_ilb13/lib/ -limgp1 $ ./xlib_draw
details for the controller's
w/ 'p', you can add a point
w/ 'd', you can draw, (mouse-motion)
w/ 'l', you can draw a line, (clic two times, to define two points)
if you clic on 'n', you will activate the 'negate'-mode,
this is a rolling-controller, which will then propose you
the append-'a' and the minus-'m', drawing modes,
(it will append or remove a '1' in the p1-image)
w/ 'w', you will write the image to the console
you can copy-paste it into a '.pbm' image-file
or redirect the output of 'xlib_draw' with >
license for the text:
to the extent permitted by law: fdl
license for the code:
to the extent permitted by law: spdx=any