Example #1
0
line(x0,y0,x1,y1){
	putc('l',stdout);
	putsi(x0);
	putsi(y0);
	putsi(x1);
	putsi(y1);
}
Example #2
0
void
cont(int xi, int yi)
{
	putc('n',stdout);
	putsi(xi);
	putsi(yi);
}
Example #3
0
space(x0,y0,x1,y1){
	putc('s',stdout);
	putsi(x0);
	putsi(y0);
	putsi(x1);
	putsi(y1);
}
Example #4
0
void
space(int x0, int y0, int x1, int y1)
{
	putc('s',stdout);
	putsi(x0);
	putsi(y0);
	putsi(x1);
	putsi(y1);
}
Example #5
0
/**
 * @brief
 * plot a point
 */
void
pl_point(register FILE *plotfp, int x, int y)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'p', plotfp );
	putsi( x );
	putsi( y );
    } else {
	fprintf(plotfp, "p %d %d\n", x, y);
    }
}
Example #6
0
void
pl_3cont(register FILE *plotfp, int x, int y, int z)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'N', plotfp );
	putsi( x );
	putsi( y );
	putsi( z );
    } else {
	fprintf(plotfp, "N %d %d %d\n", x, y, z);
    }
}
Example #7
0
void
pl_circle(register FILE *plotfp, int x, int y, int r)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'c', plotfp );
	putsi( x );
	putsi( y );
	putsi( r );
    } else {
	fprintf(plotfp, "c %d %d %d\n", x, y, r);
    }
}
Example #8
0
void
pl_line(register FILE *plotfp, int x1, int y1, int x2, int y2)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'l', plotfp );
	putsi( x1 );
	putsi( y1 );
	putsi( x2 );
	putsi( y2 );
    } else {
	fprintf(plotfp, "l %d %d %d %d\n", x1, y1, x2, y2);
    }
}
Example #9
0
void
three_coord_out(FILE *fp, fastf_t *m)
{
    point_t	p1;
    short	p2[3];

    p1[0] = getshort(fp);	/* get X */
    p1[1] = getshort(fp);	/* and Y */
    p1[2] = getshort(fp);	/* and Z */

    MAT4X3PNT( p2, m, p1 );

    putsi(p2[0]);		/* put X */
    putsi(p2[1]);		/* and Y */
    putsi(p2[2]);		/* and Z */
}
Example #10
0
File: ascart.c Project: NeTTa/espl
void printAll(int argc, char **argv){
  	int iline;
 	for(iline = 0; iline != SYMBOL_HEIGHT; ++iline) {
		printWord(iline ,argc , argv);
		putsi("\n");
	}
}
Example #11
0
File: arc.c Project: stqism/DEMOS
arc(xi,yi,x0,y0,x1,y1) {
    putc('a',stdout);
    putsi(xi);
    putsi(yi);
    putsi(x0);
    putsi(y0);
    putsi(x1);
    putsi(y1);
}
Example #12
0
void
pl_3space(register FILE *plotfp, int x1, int y1, int z1, int x2, int y2, int z2)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'S', plotfp );
	putsi( x1 );
	putsi( y1 );
	putsi( z1 );
	putsi( x2 );
	putsi( y2 );
	putsi( z2 );
    } else {
	fprintf(plotfp, "S %d %d %d %d %d %d\n", x1, y1, z1, x2, y2, z2);
    }
}
Example #13
0
void
pl_arc(register FILE *plotfp, int xc, int yc, int x1, int y1, int x2, int y2)
{
    if (pl_outputMode == PL_OUTPUT_MODE_BINARY) {
	putc( 'a', plotfp );
	putsi( xc );
	putsi( yc );
	putsi( x1 );
	putsi( y1 );
	putsi( x2 );
	putsi( y2 );
    } else {
	fprintf(plotfp, "a %d %d %d %d %d %d\n", xc, yc, x1, y1, x2, y2);
    }
}
Example #14
0
circle(x,y,r){
	putc('c',stdout);
	putsi(x);
	putsi(y);
	putsi(r);
}
Example #15
0
File: point.c Project: stqism/DEMOS
point(xi,yi){
	putc('p',stdout);
	putsi(xi);
	putsi(yi);
}
Example #16
0
File: ascart.c Project: NeTTa/espl
void printSpace(int iarg , int iline , int argc){
	if(iarg!=argc-1){
		putsi(alphabet[asc2idx(' ')][iline]);
	}
}
Example #17
0
cont(xi,yi) {
    putc('n',stdout);
    putsi(xi);
    putsi(yi);
}
Example #18
0
move(xi,yi){
	putc('m',stdout);
	putsi(xi);
	putsi(yi);
}
Example #19
0
File: ascart.c Project: NeTTa/espl
 void printChar(char * c , int iline){
	while(*c) { 
		putsi(alphabet[asc2idx(*c)][iline]);
		++c;
	}
}