|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
unitsize(1cm);
pair A, B, C, D;
A=(0,0);
B=(2,0);
C=(4,0);
D=(4,2);
draw(A--B);
draw(C--D);
Mots-clefs : Basis, size, unitsize
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
unitsize(x=1cm, y=0.5cm);
pair A, B, C, D;
A=(0,0);
B=(2,0);
C=(4,0);
D=(4,2);
draw(A--B);
draw(C--D);
Mots-clefs : Basis, size, unitsize
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(6cm,0);
draw(scale(4)*unitcircle);
dot((0,0));
dot((4,0));
fixedscaling((-8,-8),(6,6));
shipout(bbox(Fill(lightgrey)));
Mots-clefs : Basis, Circle, fixedscaling, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
// From Asympote's FAQ
size(6cm,0);
path p=(0,0)--(1,0);
frame object;
draw(object,scale(3cm)*p);
add(object);
add(object,(0,-10));
Mots-clefs : deferred drawing, fixedscaling, frame, size, True size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(1cm,1cm);
pair A=(0,0), B=(1,0), C=(0,1);
draw (A--B--C);
Mots-clefs : Basis, path, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(1cm,1cm);
pair A=(0,0), B=(1,0), C=(0,1);
draw (A--B--C--cycle);
Mots-clefs : Basis, path, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(2cm,2cm);
draw(unitsquare);
dot((0,0)--(1,1)--(0,1)--(1,0));
draw((0,0)--(1,1));
draw((1,0)--(0,1));
Mots-clefs : Basis, path, Point/Dot, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(4cm,2cm,false);
draw(unitsquare);
dot((0,0)--(1,1)--(0,1)--(1,0));
draw((0,0)--(1,1));
draw((1,0)--(0,1));
Mots-clefs : Basis, path, Point/Dot, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(0,0);
pair O=0;
draw(circle(O,2cm));
dot(circle(O,2cm),red+4bp);
Mots-clefs : Basis, Circle, path, Point/Dot, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(4cm);
draw(unitcircle, dot);
dotfactor*=3;
draw(shift(-0.5,-0.5)*unitsquare, dot(blue,Fill(red)));
Mots-clefs : Basis, Circle, path, Point/Dot, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(0,0);
real R=2cm;
draw(scale(R)*unitcircle);
dot((0,0),linewidth(4bp));
dot((R*cos(pi/6),R*sin(pi/6)),red+8bp);
Mots-clefs : Basis, Circle, path, size, Transform
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(4cm,0);
import graph;
path PerfectCircle=Circle((0,0),1);
draw(PerfectCircle,linewidth(2mm));
dot(PerfectCircle,.8red);
Mots-clefs : Basis, Circle, path, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(4cm,0);
//Return Circle AB diameter
path circle(pair A, pair B)
{
return shift(midpoint(A--B))*scale(abs(A-B)/2)*unitcircle;
}
pair A=(0,0), B=(1,0);
draw(circle(A,B));
dot(A--B);
Mots-clefs : Basis, Circle, Function (creating), path, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(6cm,0);
//Return Circle AB diameter
path circle(pair A, pair B)
{
return shift(midpoint(A--B))*scale(abs(A-B)/2)*unitcircle;
}
pair A=(0,0), B=(3,0), C=(2,1);
draw(A--B,.8blue);
draw(A--C,.8red);
draw(B--C,.8green);
draw(circle(A,B),.8blue);
draw(circle(A,C),.8red);
draw(circle(B,C),.8green);
Mots-clefs : Basis, Circle, Function (creating), path, size
|
|
|
(Compiled with Asymptote version 1.87svn-r4652)
|
|
size(4cm,0);
//Return Circle AB diameter
path circle(pair A, pair B)
{
return shift(midpoint(A--B))*scale(abs(A-B)/2)*unitcircle;
}
pair A=(0,0), B=(1,0), C=(2,0);
path cleAB=circle(A,B);
path cleAC=circle(A,C);
for(real t=0; t<length(cleAB); t+=0.01)
fill(circle(point(cleAB,t),point(cleAC,t)));
Mots-clefs : Basis, Circle, Function (creating), Loop/for/while, path, size