subtract


Description:

public Color subtract (Color b)

Subtracts b from this and saves the resulting color inside result.

This function assumes that the components of this are greater than the components of b; the result is, otherwise, undefined.

The alpha channel of result is set as the minimum value between the alpha channels of this and b.

Parameters:

this

a Color

b

a Color

result

return location for the result