Just a thought, but is it theoretically possible to store the graph screen into lists, using for( loops and pxl test?
It works, but it's probably better to use a plot( because its quicker and it already takes a list, but it really depends on what type of graphics your doing.
Sorry I didn't read that properly. Yes it works. It takes a while but that can happen.
For( x, 1, 94 For( y, 1, 62 If pxl-test(x,y): then X -> L1(length(L1) + 1 Y -> L2(length(L2) +1 End End End
The Silver Phantom welcomes you
length( only works on strings. You have to use dim( ;)
Also I dont know whether it returns an memory or overflow error sometimes…
You could prevent this by only using one list, but using fPart( and iPart(
:DelVar L₁ :SetUpEditor L₁ :For(X,0,94 :For(Y,0,62 :If pxl-test(X,Y :X+(Y/100→L₁(1+dim(L₁ :End :End
This will store the X coordinate to the iPart and the Y to the fPart.
To reuse it you have to do:
:ClrGraph :For(I,1,dim(L₁ :Pxl-On(iPart(L₁(I)),100fPart(L₁(I :End
Wake me, when you need me.
I made this routine. :)
(that was a real pain to find again :P)
EDIT: Eww, I need to optimise that.
47%? Take a look and try to imagine how cool 100% will be. This has won zContest 2011 and made news on TICalc. This compromise between Assembly and BASIC parses like BASIC and is fast like assembly. Grammer 2