plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

circ.c (219B)


      1 #include "mplot.h"
      2 void circ(double xc, double yc, double r){
      3 	Point p;
      4 	int rad;
      5 	p.x=SCX(xc);
      6 	p.y=SCY(yc);
      7 	if (r < 0)
      8 		rad=SCR(-r);
      9 	else
     10 		rad=SCR(r);
     11 	ellipse(screen, p, rad, rad, 0, getcolor(e1->foregr), ZP);
     12 }