Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/extras/MapleLeaf.m4

raw
1 .PS
2 # MapleLeaf.m4
3 # https://tex.stackexchange.com/questions/348089/how-to-draw-a-maple-leaf-in-tikz
4 gen_init
5
6 define x { (1+(cos(6*t))^2 + 1/5*(cos(6*t)*cos(24*t))^10 \
7 + (1/4*(cos(30*t))^2 + 1/9*(cos(30*t))^12)*(1-(sin(6*t))^10)) \
8 *sin(2*t)*(1-(cos(t))^4)*(1-(cos(t))^10*(cos(3*t))^2)+1/70*(cos(t))^9 }
9
10 define y { -21/20*cos(2*t)*(1-(cos(t))^4 + 1/2*(cos(t)*cos(3*t))^10) \
11 *(1+(cos(6*t))^2 + 1/5*(cos(6*t)*cos(18*t))^10 \
12 + (1/4*(cos(30*t))^4 + 1/16*(cos(30*t))^12) \
13 *(1-(cos(t))^10*(cos(3*t))^2)*(1-(sin(6*t))^10)) }
14
15 npts=200
16 t = 0
17 spline 0.55 from (x,y) up 0 shaded "Red"
18 for i=1 to npts do { t=i/npts*pi__; continue to (x,y) }
19
20 .PE