What is the range of the LDR ? minimum and maximum?
ok from 0-1023
My mistake sin() and cos() needs radians. OK try this:
float angle = 3.14159265 - (LDR / 325,6310);
float x = 90 + 65 * cos(angle);
float y = 490 + 65 * sin(angle);
line (90,490,x,y);