Graphics - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html) +--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html) +--- Thread: Graphics (/thread-187.html) |
Graphics - Jules - 02-10-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? Graphics - toonski84 - 02-10-2003 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 Screen 7 should be avoided - 1000101 - 02-10-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. Graphics - Jules - 02-11-2003 thank you both for the help! Graphics - relsoft - 02-11-2003 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.. :*) Graphics - wizardlife - 02-12-2003 Quote:TIP: Depending on the teacher, that will either get full marks or zero. Graphics - NovaProgramming - 02-12-2003 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 Graphics - Agamemnus - 02-12-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: |