TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: DAVID ROTHSCHILD
from: KURT KUZBA
date: 1998-03-28 23:34:00
subject: Using poke

DR>   How do I use POKE to draw pixels in screen 12?  Or is
DR>   there something faster?
   You can use the PSET command.
'_|_|_|   12HPSET.BAS   PUBLIC DOMAIN   Kurt Kuzba   3/28/1998
DECLARE SUB testpattern ()
SCREEN 12
testpattern
WHILE INKEY$ = "": WEND
SCREEN 0: WIDTH 80, 25
SUB testpattern
   DIM x(220 TO 420) AS LONG, y(140 TO 340) AS LONG
   FOR t% = 140 TO 340: y(t%) = t%: NEXT
   FOR t% = 220 TO 420: x(t%) = t%: NEXT
   FOR t% = 0 TO 3000
      SWAP x((t% MOD 201) + 220), x(RND * 200 + 220)
      SWAP y((t% MOD 201) + 140), y(RND * 200 + 140)
   NEXT
   FOR v% = 140 TO 340
      FOR h% = 220 TO 420
         PSET (x(h%), y(v%)), ((x(h%) * y(v%) \ 3) AND 15)
         IF INKEY$ > "" THEN EXIT SUB
      NEXT
   NEXT
END SUB
> ] I'm not materialistic. I'm just Object Oriented.............
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.