So I need the dot to bounce from the upper left corner to the bottom and to the upper right corner here is the code I have so far which just lets the dot appear. Also I am in Pico
[ Read 23 lines ]
UW PICO 5.09 File: Cdineen_HW3.c
Code:
//dot/circle bouncing back and forth
// 3/29/18
#include <stdio.h>
#include "philsplot.h"
int main() {
double x1=-10., x2=+10., y1=-7., y2=+7.;
open_plot("1000x700");
setlim_plot(x1,x2,y1,y2);
double expand=4.0;
int pColor=2,pVertex=10,pStyle=1,pMem=1;
double x=0., y=0.;
delay_plot(3000);
putpoint_plot(x,y,pVertex,pStyle,pColor,expand,pMem);
flush_plot();
delay_plot(3000);
delpoint_plot();
flush_plot();
printf("Press Enter");
getchar();
close_plot();
}