Im wanting to create a sin wave the width of the screen..
I did find some C code my maths aint up to the job of properly understanding the code..
can any one help me convert it ..
Thanks
CODE void draw_sine ()
{
int length = 50;
fixed x, y;
fixed angle = 0;
fixed angle_stepsize = itofix (5);
while (fixtoi(angle) < 256)
{
// the angle is plotted along the x-axis
x = angle;
// the sine function is plotted along the y-axis