aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/circ.c
blob: 53337117c8f2d28deb1d827ed967ffe35a10c23a (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);
}