fix Makefile and README.md for 2005/boutines

This commit is contained in:
Landon Curt Noll committed 2023-03-21 23:09:54 -07:00
1 parent aafccbca69
commit 12f5c26937
2 files changed
+21 -13

No files matched your search

+2 -2
View File
@@ -101,7 +101,7 @@ CINCLUDE=
#CINCLUDE= -include stdlib.h #CINCLUDE= -include stdlib.h
#CINCLUDE= -include stdio.h #CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h -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` #CINCLUDE= `${SDL2_CONFIG} --cflags`
# Optimization # Optimization
@@ -166,7 +166,7 @@ ENTRY= boutines
PROG= ${ENTRY} PROG= ${ENTRY}
# #
OBJ= ${PROG}.o OBJ= ${PROG}.o
DATA= DATA= Voronoi.png eqn.png
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
+19 -11
View File
@@ -4,28 +4,36 @@
Toulouse, France Toulouse, France
francois.boutines@gmail.com 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]. You will need an [SVG] viewer. Look here to find some [SVG Viewer Implementations].
[SVG]: http://www.w3.org/Graphics/SVG/ [SVG]: http://www.w3.org/Graphics/SVG/
[SVG Viewer Implementations]: http://wiki.svg.org/Viewer_Implementations [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"? 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._ _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 for free) or at least a command line parameter. Same with the char set, the
viewport and potentially every SVG property. viewport and potentially every SVG property.
## See Also ### See Also
[Voronoi at Wikipedia](http://en.wikipedia.org/wiki/Voronoi_diagram), [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), [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) [Voronoi and Art](http://www.snibbe.com/scott/bf)
## Example Output ### Example Output
> ![Voronoi diagram of two regular pentagon vertices](Voronoi.png) > ![Voronoi diagram of two regular pentagon vertices](Voronoi.png)