Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: stevon8ter on December 03, 2012, 05:39:18 pm
-
Is it possible to do: rotC(Pic1)->Pic2 ? (Sprites)
-
no because rotC retunr on pointer and it as you make pic1->pic2....
-
Hmmm and would {Pic1}-> {Pic2} be possible then?
-
No because the command →Pic2 is actually an instruction to the compiler and doesn't get run during the program.
EDIT: That was for your first question. {Pic1}→{Pic2} is perfectly fine but it only copies the first byte (the first row) of Pic1 to Pic2.
-
yes or not ^^
If you compile you program in applications isn't possible, but else {Pic1}-> {Pic2} copie the first byte of pic1 at pic2 you can make for copie two sprite :copy(PIC1,PIC2,8) ;)
-
With the copy instruction, i can't rotate sprite?
-
Copy(rotC(Pic1),Pic2,8)
-
Ok thx :D
-
or you can use the anonyme function :
:.A
:[FF00FF00FF00FF00]→Pic1
:Buff(8)→GDB1FUNC
:λ(r1)→{GDB1FUNC}r
:λ(rotC(r1))→{GDB1FUNC+2}r
:λ(rotCC(r1))→{GDB1FUNC+4}r
:λ(flipV(r1))→{GDB1FUNC+6}r
:1→D
:
:While 1
:getKey→r1>0 and (r1<5)?r1→D
:Pt-OFF(0,,({D-1*2+GDB1FUNC}r)(Pic1
:DispGraphClrDraw
:EndIf getKey(15)
-
Lambdas are larger and slower than normal subroutines.
-
yes for one code in grayscale but for th B/W is doof :) but is't right than lambda is very slow
-
I'll just use the easy copy code xp
Thx guys