From 12f5c26937aa158481080c5d3ac401853216cbdd Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Tue, 21 Mar 2023 23:09:54 -0700 Subject: [PATCH] fix Makefile and README.md for 2005/boutines --- 2005/boutines/Makefile | 4 ++-- 2005/boutines/README.md | 30 +++++++++++++++++++----------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/2005/boutines/Makefile b/2005/boutines/Makefile index 8ff856ef6..87e261b7f 100644 --- a/2005/boutines/Makefile +++ b/2005/boutines/Makefile @@ -101,7 +101,7 @@ CINCLUDE= #CINCLUDE= -include stdlib.h #CINCLUDE= -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h -#CINCLUDE= -I ${X11_INCDIR} +#CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 #CINCLUDE= `${SDL2_CONFIG} --cflags` # Optimization @@ -166,7 +166,7 @@ ENTRY= boutines PROG= ${ENTRY} # OBJ= ${PROG}.o -DATA= +DATA= Voronoi.png eqn.png TARGET= ${PROG} # ALT_OBJ= diff --git a/2005/boutines/README.md b/2005/boutines/README.md index fe269559a..9b0074dad 100644 --- a/2005/boutines/README.md +++ b/2005/boutines/README.md @@ -4,28 +4,36 @@ Toulouse, France francois.boutines@gmail.com -## Judges' Comments +# To build: -## To build: +```sh +make +``` - make all - -### To run +### To run: You will need an [SVG] viewer. Look here to find some [SVG Viewer Implementations]. [SVG]: http://www.w3.org/Graphics/SVG/ [SVG Viewer Implementations]: http://wiki.svg.org/Viewer_Implementations -The following will create an SVG file, +The following will create an SVG file: - perl -e 'map{print rand," ",rand,"n";}(1..20);' | ./boutines > test.svg +```sh +perl -e 'map{print rand," ",rand,"n";}(1..20);' | ./boutines > test.svg +``` -## Judges' comments +### Try: + +```sh +perl -e 'map{print rand," ",rand,"n";}(1..20);' | ./boutines > test.svg +``` + +## Judges' comments: Can you explain the author's remark "[generated files] are not as scalable as their name suggests"? -## Author's Comments +## Author's comments: _In memory of my father Pierre Boutines-Vignard._ @@ -120,13 +128,13 @@ design it as a function of the underlying cell's area (which can be averaged for free) or at least a command line parameter. Same with the char set, the viewport and potentially every SVG property. -## See Also +### See Also [Voronoi at Wikipedia](http://en.wikipedia.org/wiki/Voronoi_diagram), [An Excerpt from The Algorithm Design Manual](http://www2.toki.or.id/book/AlgDesignManual/BOOK/BOOK4/NODE187.HTM), [Voronoi and Art](http://www.snibbe.com/scott/bf) -## Example Output +### Example Output > ![Voronoi diagram of two regular pentagon vertices](Voronoi.png)