Advertisement
Dr_Davenstein

easy screenmelt

Nov 5th, 2021
3,798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "fbgfx.bi"
  2.  
  3. screenres 1280, 1024, 32
  4.  
  5. for y as integer = 0 to 1023
  6.    
  7.     for x as integer = 0 to 1279
  8.        
  9.         pset(x,y), ((x xor y) and 255) shl 16
  10.        
  11.     next
  12.    
  13. next
  14.  
  15. dim as integer bufW = 100
  16.  
  17. dim as fb.image ptr temp = imagecreate(bufW, 1024, 0)
  18.  
  19.  
  20. do
  21.    
  22.    
  23.     if multikey(FB.SC_SPACE) then
  24.    
  25.         dim as integer rx = int(rnd*(1280-bufW+1))
  26.        
  27.         dim as integer scrolldown = 1+int(rnd*50)
  28.        
  29.         screenlock
  30.        
  31.         get (rx,0)-(rx+bufW-1,1023), temp
  32.         line(rx,0)-(rx+bufW-1, scrollDown-1),0,bf
  33.         put(rx,scrolldown), temp, pset
  34.        
  35.         screensync
  36.        
  37.         screenunlock
  38.    
  39.     end if
  40.    
  41.    
  42.     sleep 1,1
  43.    
  44. loop until multikey(FB.SC_ESCAPE)
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. sleep
  52.  
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement