Commit 9498d020 authored by colm's avatar colm

images pre gif animation of Knuth's most beautiful curve

parent 382e0ded
This diff is collapsed.
This is MetaPost, version 1.803 (kpathsea version 6.1.1) 22 JUL 2016 17:49
**curve.mp
(mpost.mp (/usr/share/texlive/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) ) (./curve.mp (./grid.mp) [1{psfo
nts.map}<cmr10.pfb>] )
1 output file written: curve.1
prologues := 3; % sortie EPS
beginfig(1)
input grid.mp;
pickup pencircle scaled 5pt;
z99=(1.5u, 6.5u);
z98=(1.5u, 1.5u);
z97=(2.5u, 0.5u);
z96=(3.5u, 1.5u);
z95=(3.5u, 3.5u);
z94=(2.5u, 4.5u);
z93=(1.5u, 3.5u);
draw z98..z97..z96{down}..z95..z94..z93..z98;
%draw z96..z95;
%draw z95..z94..z93;
dotlabels.top(70, 71, 72, 73, 74, 75, 76);
dotlabels.top(60, 61, 62, 63, 64, 65, 66);
dotlabels.top(50, 51, 52, 53, 54, 55, 56);
dotlabels.top(40, 41, 42, 43, 44, 45, 46);
dotlabels.top(30, 31, 32, 33, 34, 35, 36);
dotlabels.top(20, 21, 22, 23, 24, 25, 26);
dotlabels.top(10, 11, 12, 13, 14, 15, 16);
dotlabels.top(00, 01, 02, 03, 04, 05, 06);
dotlabels.top('10, '11, '12, '13, '14, '15, '16);
dotlabels.top('20, '21, '22, '23, '24, '25, '26);
endfig;
end
% common variables, we can define all we need
w = 1000pt;
h = 1000pt;
xheight = 1/1.5;
u = 50pt;
% preparing a common grid for all glyphs
z00 = (0,0); z01 = (1u, 0); z02 = (2u, 0); z03 = (3u, 0); z04 = (4u, 0); z05 = (5u, 0); z06 = (6u, 0);
z10 = (0, 1u); z11 = (1u, 1u); z12 = (2u, 1u); z13 = (3u, 1u); z14 = (4u, 1u); z15 = (5u, 1u); z16 = (6u, 1u);
z20 = (0, 2u); z21 = (1u, 2u); z22 = (2u, 2u); z23 = (3u, 2u); z24 = (4u, 2u); z25 = (5u, 2u); z26 = (6u, 2u);
z30 = (0, 3u); z31 = (1u, 3u); z32 = (2u, 3u); z33 = (3u, 3u); z34 = (4u, 3u); z35 = (5u, 3u); z36 = (6u, 3u);
z40 = (0, 4u); z41 = (1u, 4u); z42 = (2u, 4u); z43 = (3u, 4u); z44 = (4u, 4u); z45 = (5u, 4u); z46 = (6u, 4u);
z50 = (0, 5u); z51 = (1u, 5u); z52 = (2u, 5u); z53 = (3u, 5u); z54 = (4u, 5u); z55 = (5u, 5u); z56 = (6u, 5u);
z60 = (0, 6u); z61 = (1u, 6u); z62 = (2u, 6u); z63 = (3u, 6u); z64 = (4u, 6u); z65 = (5u, 6u); z66 = (6u, 6u);
z70 = (0, 7u); z71 = (1u, 7u); z72 = (2u, 7u); z73 = (3u, 7u); z74 = (4u, 7u); z75 = (5u, 7u); z76 = (6u, 7u);
z'10 = (0, -1u); z'11 = (1u, -1u); z'12 = (2u, -1u); z'13 = (3u, -1u); z'14 = (4u, -1u); z'15 = (5u, -1u); z'16 = (6u, -1u);
z'20 = (0, -2u); z'21 = (1u, -2u); z'22 = (2u, -2u); z'23 = (3u, -2u); z'24 = (4u, -2u); z'25 = (5u, -2u); z'26 = (6u, -2u);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment