home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1995 August
/
NEBULA.bin
/
SourceCode
/
AlexNeXTSTEPSource
/
Source
/
Chapter7_Views
/
Shapes
/
drawcircle.psw
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-04-14
|
287 b
|
18 lines
// wraps routine to draw a circle
defineps drawcircle(float x, y,
angle, xScale, yScale)
% translate axes
x y translate
% rotate
angle rotate
% scale
xScale yScale scale
% move to new origin
0 0 moveto
% draw circle
0 0 5 0 angle arc
% fill to white
1 setgray
fill
endps