Drawingsurface and drawing color brightness

Started by TMuh, Tue 03/12/2013 09:18:47

Previous topic - Next topic

TMuh

Hi,

Is there a way to change drawingsurface drawing color brightness? All i found was Game.GetColorFromRBG.

If there isnt, id suggest to add it. I assume it would be quite easy, because brightness value is already there in game's color finder.


Edit: Also a little side question: Is there limit how many characters can be in game/in one room?

Khris

The entire spectrum of brightness is covered by RGB, 0 - 255.
Are you asking for conversion from HSV to RGB?

Or do you want something like
ds.DrawingColor = 3434;
...
ds.IncreaseDrawingBrightness(30);
?

Why not code it yourself?
http://www.adventuregamestudio.co.uk/forums/index.php?topic=48952.msg636467419#msg636467419

TMuh

Ok, thanks.

I wasnt familiar with this HSV thing and I still dont quite get how the ags color numbers are defined, but that function u linked seems to be exactly what i need.

SMF spam blocked by CleanTalk