Talk:GetResultingColor: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
dxDrawRectangle( 200, 200, 200, 200, tocolor(0, 0, 0, 255)) | dxDrawRectangle( 200, 200, 200, 200, tocolor(0, 0, 0, 255)) | ||
dxDrawRectangle( 250, 250, 100, 100, tocolor(255, 255, 255, 128)) | dxDrawRectangle( 250, 250, 100, 100, tocolor(255, 255, 255, 128)) | ||
Do a screenshot, open it with your favorite image editor (I use Paint.NET, it's free and awesome), use the Color Picker tool and see the result. | Do a screenshot, open it with your favorite image editor (I use Paint.NET, it's free and awesome), use the Color Picker tool and see the result. | ||
--[[User:Guix|Guix]] 20:47, 26 January 2013 (UTC) | --[[User:Guix|Guix]] 20:47, 26 January 2013 (UTC) |
Latest revision as of 21:04, 26 January 2013
This function is wrong. Mixing (0,0,0,255) with (255,255,255,128) would obviously result in (64,64,64,255), not the values that your function returns. --Wielebny 14:01, 26 January 2013 (UTC)
I don't know where you got your so obvious result... The return values are correct.
You can easily test it:
dxDrawRectangle( 200, 200, 200, 200, tocolor(0, 0, 0, 255))
dxDrawRectangle( 250, 250, 100, 100, tocolor(255, 255, 255, 128))
Do a screenshot, open it with your favorite image editor (I use Paint.NET, it's free and awesome), use the Color Picker tool and see the result. --Guix 20:47, 26 January 2013 (UTC)