"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.60/examples/labelbox.asy" (6 Nov 2019, 264 Bytes) of package /linux/misc/asymptote-2.60.src.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 size(0,100);
    2 real margin=2mm;
    3 pair z1=(0,1);
    4 pair z0=(0,0);
    5 
    6 object Box=draw("small box",box,z1,margin);
    7 object Ellipse=draw("LARGE ELLIPSE",ellipse,z0,margin);
    8 
    9 add(new void(frame f, transform t) {
   10     draw(f,point(Box,SW,t){SW}..{SW}point(Ellipse,NNE,t));
   11   });