/usr/share/doc/epix/examples/geomsum.xp is in epix 1.2.18-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 34 35 36 37 | /* -*-ePiX-*- */
/* geomsum.c -- July 16, 2001 */
#include "epix.h"
using namespace ePiX;
const int N(8);
int main()
{
picture(P(0,0), P(1,1), "2.5x2.5in");
begin();
pen(White(), "0.8pt");
fill(White(0.9));
rect(P(0,0), P(1,1));
black();
label(P(1.0/4, 1.0/2), "$\\frac{1}{2}$");
label(P(5.0/8, 3.0/4), "$\\frac{1}{8}$");
label(P(13.0/16, 7.0/8), "$\\frac{1}{32}$");
white();
fill(Blue());
double t(0.5);
for(int i=0; i<N; ++i, t *= 0.5)
{
rect(P(1-t, 1-2*t), P(1, 1-t));
line(P(1-t, 1-2*t), P(1-t, 1));
}
label(P(3.0/4, 1.0/4), "$\\mathbf{\\frac{1}{4}}$");
label(P(7.0/8, 5.0/8), "$\\mathbf{\\frac{1}{16}}$");
label(P(15.0/16, 13.0/16), "$\\mathbf{\\frac{1}{64}}$");
end();
}
|