aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/disk.c
blob: 6255efa5ff254debe6756317d804623800ee1cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "mplot.h"
void plotdisc(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);
	fillellipse(screen, p, rad, rad, getcolor(e1->foregr), ZP);
}