/usr/share/ddd/vsllib/arcs.vsl is in ddd 1:3.3.12-5.1build2.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | // $Id$
// Arcs and steep lines for VSL
// Copyright (C) 1993 Technische Universitaet Braunschweig, Germany.
// Written by Andreas Zeller <zeller@gnu.org>.
//
// This file is part of DDD.
//
// DDD is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// DDD is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with DDD -- see the file COPYING.
// If not, see <http://www.gnu.org/licenses/>.
//
// DDD is the data display debugger.
// For details, see the DDD World-Wide-Web page,
// `http://www.gnu.org/software/ddd/',
// or send a mail to the DDD developers <ddd@gnu.org>.
// Version
arcs_version() = "$Id$";
// Synonyms
arcthickness() = rulethickness();
arc(start, length) = arc(start, length, arcthickness());
// Makros
// Arcs
arc360() = arc(0, 360);
arc180(start) = arc(start, 180);
arc90(start) = arc(start, 90);
ne_arc90() = arc90(0);
nw_arc90() = arc90(90);
sw_arc90() = arc90(180);
se_arc90() = arc90(270);
n_arc180() = arc180(0);
w_arc180() = arc180(90);
s_arc180() = arc180(180);
e_arc180() = arc180(270);
// Ovals
_ovalbody(box) = fix(hrule() | box | hrule());
_oval(box) =
fix(w_arc180() ^ (square(vspace(box) - 1) / box(2,1)))
& box
& fix(e_arc180() ^ (square(vspace(box) - 1) / box(2,1)));
oval(box) = _oval(_ovalbody(whiteframe(box)));
// Ellipses
ellipse() = arc360();
_ellipse(box) = fix((space(box) * 2) ^ ellipse() ^ center(box));
ellipse(box) = _ellipse(whiteframe(box, arcthickness() + whitethickness()));
// Circles
_circle(box) = fix(square(box) ^ ellipse() ^ center(box));
circle(box) = _circle(whiteframe(box, arcthickness() + whitethickness()));
|