Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pset wont work
#11
your welcome.
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#12
SCREEN 13 initializes the most used screen mode in QB.

There are 320 Pixel from (0 to 319) in the horicontal, 200 Pixel (from 0 to 199) in the vertical and 256 (from 0 to 255) colors to use.

So, here follows an example:

Code:
SCREEN 13

For x = 0 TO 319  
For y = 0 TO 199
PSET (x, y), INT(RND * 256)
'Draws a pixel with a randomly built color to the coordinates x,y
NEXT y
NEXT X

If you don't know what a FOR-loop is, go here: http://www.qbasicnews.com/tutorials.php?...=view&id=1

And if you have any other questions about SCREEN 13 or PSET, just have a look at this: http://www.qbasicnews.com/tutorials.php?...=view&id=2

Hope I could help ya
B 4 EVER
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)