While working with extended blend modes, I sometimes think that it would be really helpful if we could create our own. Like blend modes have 4 values to be multiplied with the R, G, B and A values, a function like this would be cool:
Of course this is just an example and not what I really want to do with it. Such a function could really prove beneficial.
Also, variables that contain the individual R/G/B/A values from src and dest to be used with the function above:
But, I don't know if it's really feasible. Am I asking for something that we're not going to get? I don't know.
What do you think?
Code:
var bm_half = blendmode_create(0.5, 0.5, 0.5, 0.5);
Also, variables that contain the individual R/G/B/A values from src and dest to be used with the function above:
Code:
var bm_multiply_alpha = blendmode_create(1, 1, 1, src_alpha * dest_alpha);
//or
var bm_multiply_color_next = blendmode_create(src_red * dest_green, src_green * dest_blue, scr_blue * dest_red, 1);
What do you think?