Posts: 2
Threads: 1
Joined: Feb 2003
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~
Posts: 2,020
Threads: 24
Joined: Jun 2002
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
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
Posts: 451
Threads: 16
Joined: Feb 2003
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.'
Posts: 2
Threads: 1
Joined: Feb 2003
thank you both for the help!
Jules~
Posts: 3,288
Threads: 167
Joined: Nov 2001
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.. :*)
Posts: 720
Threads: 46
Joined: Oct 2001
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.
Posts: 938
Threads: 104
Joined: Dec 2002
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
.
-----------------------------
Posts: 3,368
Threads: 195
Joined: Jan 2003
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.