| Refresh | Home EGTry.com

arc and circle


arc circle

arc_circle.ps

%!
/Stroke1
{
0.5 1 0.5 setrgbcolor
5 setlinewidth
stroke
}
def

newpath

100 210 50 0 210 arc % origin: (100,100), radius: 50, angle: 0-210, counterclock
Stroke1

newpath
100 190 50 0 210 arcn % clockwise
Stroke1

newpath
100 80 50 0 360 arc % circle with fill and stroke
closepath 
gsave
1 0.5 0.5 setrgbcolor
fill
grestore
Stroke1

showpage