android - how can i add two colors and get the combination of both in a new button -
i creating app in user chooses 2 colors , result of 2 colors displayed in box. no how can ?
do need add hex code of both colors or ?
two ways it.
assuming choice of colors not include alpha, create 2 separate views overlap each other (good visuals if overlap on area don't entirely cover each other - distinguish between two). set each view chosen color alpha of 50%. these views blend , desired output.
if want "mix colors" produce "useable" value, easiest computation "average" each of rgb values. that, or find color mixing algorithm somewhere.
Comments
Post a Comment