Colouring

BlitzMax Forums/BlitzMax Programming/Colouring

Raz(Posted 2006) [#1]
Anyone know if this is possible at all?

is there an alpha/blend/other technique of adding colour? like...
100,0,0
...will take the original image and add some red to it? (where as the setcolor command will only ever subtract colour [or keep it the same])

e.g.
setcolor 255,255,255

setcolor 255,0,0

*addcolor 200,0,0


ta


tonyg(Posted 2006) [#2]
Might be something here that can help.
Otherwise, setcolor, setalpha and drawrect the size of the screen?
Graphics 640 , 480
image:TImage = LoadImage("max.png")
DrawImage image , 0 , 0
SetColor 255 , 0 , 0
SetBlend alphablend
SetAlpha 0.3
DrawRect 0 , 0 , 256 , 256
Flip
WaitKey()



Raz(Posted 2006) [#3]
ahh yeah.... seems so obvious now, thank you :)


ImaginaryHuman(Posted 2006) [#4]
Was gunna say just draw a semi-transparent colored rectangle over the screen.