I am creating an app in which user chooses two colors and the result of the two colors would be displayed in another box. No how can i do that ?
Do i need to add hex code of both the colors or what ?
I am creating an app in which user chooses two colors and the result of the two colors would be displayed in another box. No how can i do that ?
Do i need to add hex code of both the colors or what ?
Two ways to do it.
Assuming your choice of colors does not include alpha, just create two separate views that overlap each other (good visuals if they just overlap on an area but don't entirely cover each other - just to distinguish between the two). Set each view to the chosen color with an alpha of 50%. These views will blend and you will get your desired output.
If you want to "mix colors" to produce another "useable" value, the easiest computation is to just "average" each of the RGB values. That, or find a color mixing algorithm somewhere.