DBPro has, with its BOX command, the ability to do a gradient fill of colour based on the colour for each corner. It looks nice and would be worth putting into GLBasic :)
You mean like this:
STARTPOLY 0 // Bitmap = No.0
POLYVECTOR 0, 0, 0, 0, RGB(255, 255, 255)
POLYVECTOR 0, 300, 0, 64, RGB (255, 255, 255)
POLYVECTOR 300, 300, 64, 64, RGB(255, 255, 255)
POLYVECTOR 250, 50, 64, 0, RGB( 0, 255, 0)
ENDPOLY
Sounds like the job!
You can even do it to a bitmap, making it different colors where the lighter areas of the bitmap is.
Quote from: Moru on 2008-Dec-29
You mean like this:
STARTPOLY 0 // Bitmap = No.0
POLYVECTOR 0, 0, 0, 0, RGB(255, 255, 255)
POLYVECTOR 0, 300, 0, 64, RGB (255, 255, 255)
POLYVECTOR 300, 300, 64, 64, RGB(255, 255, 255)
POLYVECTOR 250, 50, 64, 0, RGB( 0, 255, 0)
ENDPOLY
Yepp, thats a powerfull command :P