It is yet another tireless night, and I have created a program that converts a swipe across the calculator keyboard into a line on the screen. This is just the same kind of algorithm that you see in the game fruit-ninja. This has been done before on the monochrome calculator, however I created this program in TI-Basic for the CE.
You can see it in action here (please ignore the scruff marks around the screen):
https://www.youtube.com/watch?v=SQfMjDxo1lg
0->dim(L1
ClrDraw
0->Xmin:264->Xmax
~164->Ymin:0->Ymax
AxesOff
DispGraph
DelVar IDelVar ADelVar BDelVar CDelVar D
While 1
getKey
If Ans
Then
Ans->L1(1+dim(L1
0->I
Else
I+1->I
If Ans>=20 and dim(L1
Then
If A
Line(B,A,D,C,0
~164+(164/10)(abs(L1(1)-101)/10->A
iPart(L1(1)/10)*10
(264/5)(L1(1)-Ans)-26->B
~164+(164/10)(abs(L1(dim(L1))-101)/10->C
iPart(L1(dim(L1))/10)*10
(264/5)(L1(dim(L1))-Ans)-26->D
Line(B,A,D,C
0->dim(L1
End
End
End