|
-
Jul 30th, 2001, 04:37 PM
#1
Thread Starter
Member
Use the QB color constants. I think red is 11 or 4 or 2 or something. Look in the help.
-
Jul 30th, 2001, 05:17 PM
#2
Addicted Member
Ah I see, a little disappointing though. There are only 16 colours
-
Jul 31st, 2001, 08:56 AM
#3
Good Ol' Platypus
I believe screen 9 gives you 320x240x8, so you have 256 colours to work with, you just must add in all of the dcolours yourself (make the pallette at the start of the program.)
Also, with unofficial QB DLLs, you can access any mode that windows can (I had my QB program going at 1024x768x32!!)
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jul 31st, 2001, 01:22 PM
#4
-
Aug 4th, 2001, 10:05 PM
#5
PowerPoster
You can try any numbers - I think
-
Oct 18th, 2001, 06:35 AM
#6
Addicted Member
I use the 13th screen mode for my games, it is 320x200 and has 256 colors. I use PixelPlus to make the graphics.
-
Oct 18th, 2001, 06:38 AM
#7
Addicted Member
With PixelPlus you just PUT the images on the screen, but if you still want to PSET images, just use PSET (x,y), color, where color is 0-255, depending on what color you want...
But PSET is so slow...
-
Dec 4th, 2001, 09:36 AM
#8
Lively Member
Try the palette statement, which should get you 256 colors to chose from. Then set the pset's color to the palette color's variable. I think its something like this. I used to make screen fading effects with it.
Palette 1, Blue, Green, Red
I remember there being numbers in the statement though, like...
Palette 1, Blue, Green*256, Red*256^65536
(Not exact form, but something like this)
Then you change the Red, Green, and Blue variables from 0 to 255 to get different colors.
Try the QB Help file by pressing F1, and search for palette. They might have an example.
IF Something <> "" Then
There's Something there... 
------------------------------------------
GWBASIC, QBASIC, QuickBASIC, VB5/6, A little DJGPP C++, and I hate it.
------------------------------------------
The pic u see is the logo of my favorite Christian Punk Band...Officer Negative!!!
www.OfficerNegative.com
-
Dec 23rd, 2001, 07:52 AM
#9
Member
If you are changing the palette a lot, you'll want to use OUT to avoid slowdown:
Code:
OUT &H3C8, colorAttribute 'the palette number to change
OUT &H3C9, redIntensity '0 to 63
OUT &H3C9, greenIntensity '0 to 63
OUT &H3C9, blueIntensity '0 to 63
Now the world is gone I'm just one...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|