HP Forums

Full Version: Scrolling examples
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
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.
Reference URL's