aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/circ.c
blob: d4b6699fe1e6619b5c39792d1ad6d9673b534b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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);
}