Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create and draw graphics
UDG creation is slightly different than in Sinclair BASIC. For compatibility's sake you can use POKE USR "a" and so on to create UDG, but there is a better way:
You can create a big array with your UDG data a then poke 23675 to the array address using the @ operator. E.g.:
10 UDGData => {0,255,0,255,0,255,0,255,0}: REM 8 bytes
20 POKE Uinteger 23675, @UDGData(0) : REM Poke UDG system variable with address of 1st element
Now you can PRINT UDG "A" using PRINT "\A". This syntax is the same ZX Basin uses.
More info on PRINTing UDG and Graphics here: <!-- m --><a class="postlink" href=""></a><!-- m -->

Messages In This Thread

Forum Jump:

Users browsing this thread: 2 Guest(s)