Talk:GetResultingColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
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. --[[User:Wielebny|Wielebny]] 14:01, 26 January 2013 (UTC)
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. --[[User:Wielebny|Wielebny]] 14:01, 26 January 2013 (UTC)


I don't know where you got your so obvious result... The return values are correct.--[[User:Guix|Guix]] 20:47, 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.
--[[User:Guix|Guix]] 20:47, 26 January 2013 (UTC)

Revision as of 21:03, 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)