#include "stdio.h" #include "stdlib.h" #include "math.h" #include "time.h" #include "paulslib.h" #include "bitmaplib.h" int main(int argc,char **argv) { int i,ix; double x,y,ylast,ymin,ymax; BITMAP *image; BITMAP cwhite = {255,255,255}, cblack = {0,0,0}; BITMAP cred = {255,0,0},cblue = {0,0,255}; int nx = 1000,ny = 500; /* Increase these for more resolution */ FILE *fptr; image = CreateBitmap(nx,ny); EraseBitmap(image,nx,ny,cwhite); for (ix=0;ix %g\n",x,ymin,ymax); */ } /* Write the image as a PPM image */ fptr = fopen("image","w"); WriteBitmap(fptr,image,nx,ny,1); fclose(fptr); DestroyBitmap(image); }