🔗Asymptote Gallery Tagged by “Deferred drawing” #94
đź”—generalities-fig012

Show generalities/fig0120.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Generalities
Tags : #Basis | #Fixedscaling | #Size | #True size | #Frame | #Deferred drawing
// From Asympote's FAQ size(10cm,0); path p=(0,0)--(1,0); frame object; draw(object, scale(8cm)*p); add(object); add(object, (0, -40));
đź”—generalities-fig013

Show generalities/fig0130.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Generalities
Tags : #Basis | #Fixedscaling | #Deferred drawing | #True size
// From Asympote's FAQ size(10cm,0); path p=(0,0)--(1,0); picture object; draw(object,scale(8cm)*p); add(object); add(object,(0,-40)); // Adds truesize object to currentpicture
đź”—generalities-fig089

Show generalities/fig0890.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Generalities
Tags : #Basis | #Deferred drawing | #Arrows/Bars | #Labelmargin | #Margin | #Picture
//From documentation of Asymptote size(6cm, 0); void distance(picture pic=currentpicture, pair A, pair B, Label L="", real n=0, pen p=currentpen) { real d=3mm; guide g=A--B; transform T=shift(-n*d*unit(B-A)*I); pic.add(new void(frame f, transform t) { picture opic; guide G=T*t*g; draw(opic, G, p, Arrows(NoFill), Bars, PenMargins); label(opic, L, midpoint(G), UnFill(1)); add(f, opic.fit()); }); pic.addBox(min(g), max(g), T*min(p), T*max(p)); } pair A=(0, 0), B=(3, 3); dot(A); dot(B); distance(A, B, Label("$\ell$", Rotate(dir(A--B))), 1);
đź”—geometry-fig033

Show geometry/fig0330.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Draw (2D) | #Clip | #Deferred drawing | #Parabola
import geometry; size(10cm); point F=(2,-1.5); dot("$F$",F,N,red); // Enlarge the bounding box of the current picture. draw(box((-1,-1),(3,1.5)),dashed);//,invisible); parabola p=parabola(F,0.2,90); // Define the bounding box to draw the parabola. // Try finalbounds(); to determine the final bounding box. p.bmin=(-0.75,-0.4); p.bmax=(2.75,0.75); draw(box(p.bmin,p.bmax),red); draw(p,dashed);/* Defered drawing to adjust the path to the final bounding box.*/ draw((path)p,red); /* The path of 'p' is restricted to the box whose the corners are p.bmin, p.bmax.*/
đź”—geometry-fig034

Show geometry/fig0340.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Draw (2D) | #Clip | #Deferred drawing | #Hyperbola | #Line
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,.75)); // show(currentcoordsys); point F1=(1,0); point F2=(4,1); dot("$F_1$",F1,W); dot("$F_2$",F2); // Enlarge the bounding box of the current picture draw(box((0,-2), (5,4)), invisible); /*<asyxml><view file="modules/geometry.asy" type="hyperbola" signature="hyperbola(point,point,real,bool)"/></asyxml>*/ hyperbola h=hyperbola(F1, F2, 0.9); draw(h, linewidth(3mm)); draw(h.A1, grey); draw(h.A2, grey); draw(h.D1); draw(h.D2); /*<asyxml><view file="modules/geometry.asy" type="hyperbola" signature="hyperbola(point,real,real,real)"/></asyxml>*/ draw(hyperbola(h.C, h.a, h.b, h.angle), 2mm+green); /*<asyxml><view file="modules/geometry.asy" type="hyperbola" signature="hyperbola(bqe)"/></asyxml>*/ draw(hyperbola(equation(h)), 1mm+red); /*<asyxml><view file="modules/geometry.asy" type="hyperbola" signature="conj(hyperbola)"/></asyxml>*/ hyperbola ch=conj(h); draw(ch, blue); draw(ch.A1, 0.5blue); draw(ch.A2, 0.5blue); draw(ch.D1); draw(ch.D2); dot("${V'}_1$", ch.V1, NE); dot("${V'}_2$", ch.V2, SW); dot("${F'}_1$", ch.F1, S); dot("${F'}_2$", ch.F2, N); dot("$V_1$", h.V1, 2E, linewidth(2mm)); dot("$V_2$", h.V2, 2W, linewidth(2mm));