HP Forums
Scrolling examples - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Scrolling examples (/thread-234.html)



Scrolling examples - Han - 12-25-2013 05:35 AM

Code:
export VSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 239 downto 0 step 1 do
    blit_p(G0,0,0,G1,0,240-i,320,240);
    blit_p(G0,0,i,G1,0,0,320,240-i);
//    wait(.001); // uncomment on emulator
  end;
end;

export HSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 319 downto 0 step 1 do
    blit_p(G0,0,0,G1,320-i,0,320,240);
    blit_p(G0,i,0,G1,0,0,320-i,240);
//    wait(.001); // uncomment on emulator
  end;
end;



RE: Scrolling examples - ArielPalazzesi - 12-25-2013 03:37 PM

Wow!
It really is very awesome!

I'm taking my first steps in programming the HP Prime, and things like this blow my mind Smile

Greetings.