Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graphics
#1
I'm new to QBASIC and we are starting to use it in my computer class. In fact we are using it to make graphics, and I am trying to create a Scooby Doo face; but I don't know where to start. Can anyone help me?
Jules~
Reply
#2
well, first you gotta set the screen mode: this can be done with screen (http://qbasicnews.com/qboho/qckscreen.shtml) once you're in, you can use a host of graphical commands to draw things on to the screen.

por ejemple:
http://qbasicnews.com/qboho/qckline.shtml
http://qbasicnews.com/qboho/qckcircle.shtml
http://qbasicnews.com/qboho/qckpset.shtml
http://qbasicnews.com/qboho/qckpaint.shtml
http://qbasicnews.com/qboho/qckpalette.shtml

another example:
screen 7 ' 320x200x16c
line (0, 0)-(319, 199), 4

this draws a line from coordinate (0, 0) to (319, 199). you get the picture Smile
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
A *lot* of newer graphics chips do *not* support the old EGA low-res modes. SCREEN 7 (mode Dh) is one of them. I have a couple 'newer' cards which do not support them. You may find that the ones at your school do not either. SCREEN 13 (mode 13h) is a better choice, it is still supported by all cards and allows for 256 colours instead of 16.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Reply
#4
thank you both for the help! Big Grin
Jules~
Reply
#5
TIP:

1. Get a scooby Doo image over the net

2. Save as 235 BMP in 320*200

3. Load with CosmoX,DQB or any lib you like.. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#6
Quote:TIP:

1. Get a scooby Doo image over the net

2. Save as 235 BMP in 320*200

3. Load with CosmoX,DQB or any lib you like.. :*)

Depending on the teacher, that will either get full marks or zero.
Reply
#7
Quote:Depending on the teacher, that will either get full marks or zero.
yeah, but come on, seriously, drawing a scoobey doo face in qbasic could be hard for a beginning programmer (I consider myself and advanced-beginner and I don't think that I could draw a scoobey doo face)
-Nova
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#8
I guess the teacher expects them to find a scooby doo picture and break it up into its sub-parts of circles, ovals, and lines on graph paper. Then write or type down the coordinates and add in LINE / CIRCLE / PAINT / DRAW to it.
:bounce:
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)