Sign in
plan9port
/
plan9
/
9dbe4a0df903ee76bf72fcaff43dea5bb5bf3f75
/
.
/
src
/
cmd
/
plot
/
libplot
/
circ.c
blob: 53337117c8f2d28deb1d827ed967ffe35a10c23a [
file
] [
log
] [
blame
]
#include
"mplot.h"
void
circ
(
double
xc
,
double
yc
,
double
r
){
Point
p
;
int
rad
;
p
.
x
=
SCX
(
xc
);
p
.
y
=
SCY
(
yc
);
if
(
r
<
0
)
rad
=
SCR
(-
r
);
else
rad
=
SCR
(
r
);
ellipse
(
screen
,
p
,
rad
,
rad
,
0
,
getcolor
(
e1
->
foregr
),
ZP
);
}