~kaction/config

ref: milestone/1 config/etc/avatar.mp -rw-r--r-- 811 bytes
8f4e28c9 — Dmitry Bogatov vim: drop custom implementation of snippets 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% This is MetaPost source of project avatar on GitLab.
%
% It is not built automatically by tup(1) build system to not introduce
% unneeded dependency on metapost; avatar is not likely to change often.
%
% Process with mptopdf(1) to generate avatar-1.pdf
unit := 3in;
delta := 3/8;
beginfig(1)
  pair A; pair B; pair C; pair D;
  pair a; pair b; pair c; pair d;
  color cv;
  A := (0, 0) * unit;
  B := (0, 1) * unit;
  C := (1, 1) * unit;
  D := (1, 0) * unit;

  for i := 0 upto 4:
    cv := ((i+1)/5)[black, white];
    fill A -- B -- C -- D -- cycle withcolor cv;
    a := delta[A, B];
    b := delta[B, C];
    c := delta[C, D];
    d := delta[D, A];
    A := a;
    B := b;
    C := c;
    D := d;
  endfor
  label(btex ${\bf\omega}^2$ etex scaled 3, (.52, .52) * unit);
endfig;
end;
% vim: sw=2:sts=2:et