setcolor affects drawimage
BlitzMax Forums/BlitzMax Programming/setcolor affects drawimage
| ||
The setcolor command affects the drawimage command. The docs say it doesnt. So I should always do setcolor 255,255,255 before any drawimage to make it draw normally. Are the docs just temporary or are they going to be improved? |
| ||
From the DrawImage entry in the manual: Drawing is affected by the current blend mode, color, scale and rotation. If the blend mode is ALPHABLEND, then the image is also affected by the current alpha value. You're right that a reference is missing from SetColor to the DrawImage cammands, but I haven't seen anything about SetColor not effecting DrawImage... Oh, and BTW - "syncmods" seems to download new documentation, so I think it's safe to assume that the documentation is going to improve with time. |
| ||
cool |
| ||
I get the Alphablend reference, but how can the currently set Colour influence the drawing of an image? |
| ||
Having setcolor effect drawimage is a useful feature. For example, if you are doing a strategy game, you could have each army have black and white units, and then tint them to each players color. However, it is confusing the way it is shown in the documentation. |
| ||
Yup, that one got me stuck for ages before I realised (I was porting a game, and my background image kept flashing different colours)! But when I did I realised it was definitely a cool feature. |
| ||
its gl, glColor3f of course its gonna change the color |