Author Topic: [AXE] rotC(Pic1) -> Pic2  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
[AXE] rotC(Pic1) -> Pic2
« on: December 03, 2012, 05:39:18 pm »
Is it possible to do: rotC(Pic1)->Pic2 ? (Sprites)
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #1 on: December 03, 2012, 05:40:39 pm »
no because rotC retunr on pointer and it as you make pic1->pic2....
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #2 on: December 03, 2012, 05:42:06 pm »
Hmmm and would {Pic1}-> {Pic2} be possible then?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #3 on: December 03, 2012, 05:43:09 pm »
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.
« Last Edit: December 03, 2012, 05:45:33 pm by Deep Thought »




Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #4 on: December 03, 2012, 05:43:46 pm »
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) ;)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #5 on: December 03, 2012, 05:45:40 pm »
With the copy instruction, i can't rotate sprite?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #6 on: December 03, 2012, 05:47:35 pm »
Copy(rotC(Pic1),Pic2,8)




Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #7 on: December 03, 2012, 05:49:37 pm »
Ok thx :D
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #8 on: December 03, 2012, 05:52:35 pm »
or you can use the anonyme function :

Code: [Select]
:.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)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #9 on: December 03, 2012, 05:53:34 pm »
Lambdas are larger and slower than normal subroutines.




Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #10 on: December 03, 2012, 05:55:15 pm »
yes for one code in grayscale but for th B/W is doof :) but is't right than lambda is very slow
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] rotC(Pic1) -> Pic2
« Reply #11 on: December 03, 2012, 06:00:43 pm »
I'll just use the easy copy code xp

Thx guys
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER