diff --git a/2020/endoh2/spoiler/spoiler.html b/2020/endoh2/spoiler/spoiler.html index 1470bb254..ed8e66a91 100644 --- a/2020/endoh2/spoiler/spoiler.html +++ b/2020/endoh2/spoiler/spoiler.html @@ -384,13 +384,13 @@
The source code of the font is glyphs.txt, which is a sequence of
chunks that is a ASCII code (65-90) followed by points data: x,y,ctrl.
If ctrl is 1, the point is used as control point for quadratic bezier curve.
code.c is the main logic for the program, which has some placeholders +
code.c is the main logic for the program, which has some placeholders for font data and something.
It decompresses the font data and renders a given text by projection. It
exploits C99’s double complex type to represent 2D points, but carefully
coded so that it does not require any math.h functions; you don’t have to pass
-lm to cc.
tmpl.txt is a template for the program. gen.rb composes +
tmpl.txt is a template for the program. gen.rb composes the all items and generates prog.c.
Jump to: top
diff --git a/2020/endoh2/spoiler/spoiler.md b/2020/endoh2/spoiler/spoiler.md index b00f9934d..c6f7bec84 100644 --- a/2020/endoh2/spoiler/spoiler.md +++ b/2020/endoh2/spoiler/spoiler.md @@ -7,7 +7,7 @@ chunks that is a ASCII code (65-90) followed by points data: `x,y,ctrl`. If `ctrl` is 1, the point is used as control point for quadratic bezier curve. -[code.c](%%REPO_URL%%/2020/endoh2/code.c) is the main logic for the program, which has some placeholders +[code.c](%%REPO_URL%%/2020/endoh2/spoiler/code.c) is the main logic for the program, which has some placeholders for font data and something. It decompresses the font data and renders a given text by projection. It @@ -15,7 +15,7 @@ exploits `C99`'s `double complex` type to represent 2D points, but carefully coded so that it does not require any `math.h` functions; you don't have to pass `-lm` to `cc`. -[tmpl.txt](tmpl.txt) is a template for the program. [gen.rb](%%REPO_URL%%/2020/endoh2/gen.rb) composes +[tmpl.txt](tmpl.txt) is a template for the program. [gen.rb](%%REPO_URL%%/2020/endoh2/spoiler/gen.rb) composes the all items and generates [prog.c](%%REPO_URL%%/2020/endoh2/prog.c).