0 Members and 1 Guest are viewing this topic.
Oooooh that makes a wave !!!Nevermind, did you try the solution of my previous post to replace the negative Q ?@calc84maniac we can do -3→Q ?
ok, so it turns around, in fact0,1,2,3,4,...,65533,65534,65535,0,1,2,3,... ↑ -3Is that it ?
You can use a negative 3. Signed $-3 is equal to unsigned $FFFD. Text( only displays unsigned variables. You can use addition and subtraction with signed integers. For division and multiplication, you must use ** or // respectively. For comparisons, you also use doubled operators. With this knowledge, you can write a routine that can display signed variables.
:.FORCEATT:Fix 5:ClrDraw:DispGraph:Circle(15,15,10:Circle(80,15,10:Text(57,10,("DEF"):Text(57,75,("OFF"):Text(10,57,"DEF:Text(75,57,"OFF:Line(25,15,30,10:Line(70,15,65,10:Line(30,10,45,10:Line(65,10,50,10:Line(45,10,47,8:Line(50,10,48,8:Line(30,7,65,7:Line(30,7,28,0:Line(65,7,67,0:Line(5,15,0,10:Line(90,15,95,10:DispGraph:rand^1+101→F:For(U,1,F:If U≥0 and (U≤9):-3→Q:0→Q:End:If U>99→Q:6→Q:End:If U≥10 and (U≤99):0→Q→Q:End:Fix 1:Text(44,10-Q,U▶Dec:Text(10-3-Q,44,U▶Dec:DispGraph:Fix 0:End:rand^1+101→N:For(U,1,N:If U≥0 and (U≤9):-3→Q0→Q:End:If U>99→Q:6→Q:End:If U≥10 and (U≤99):0→Q→Q:End:Fix 1:Text(44,75-Q,U▶Dec:Text(75-3-Q,44,U▶Dec:DispGraph:Fix 0:End:Line(36,60,58,60:Pt-On(35,62:Pt-On(35,61:Pt-On(59,62:Pt-On(59,61:Pxl-On(35,62:Pxl-On(35,61:Pxl-On(59,62:Pxl-On(59,61:Line(89,29,89,61:Line(89,29,93,29:Line(94,29,94,61:Line(89,61,4,61:Line(91,U,92,U:DispGraph:Pause 5000:Fix 4
of Hayleia::Pt-On(35,62:Pt-On(35,61:Pt-On(59,62:Pt-On(59,61:Pxl-On(35,62:Pxl-On(35,61:Pxl-On(59,62:Pxl-On(59,61