June 9th, 2012, 12:41 AM  #1 
Newbie Joined: Jun 2012 Posts: 4 Thanks: 0  color mixing riddle
hope im at the right place (maybe it can be solved with matrics...) my question is : assuming i have 3 basic colors each is made of red green blue : color1 : R:150, B:0, G:255 color2 : R:255, B:150, G:0 color3 ; R:0, B:255, G:150 the mixing system can mix 2 colors at a time according to the formula : new color = floor(0.9*X)+floor(0.1*Y) (floor = round down...) the colors (X and Y) can be a basic color or a new color allready created by using the formula. I need an algorithm of mixing the colors in order to get some other colors , for example desired color is : R:187 B:135 G:201. I wrote a simple program which goes over numbers from 0 to infinte and convert them to base 3, each digit in the result is assigned a basic color value : 0=color1, 1=color2, 2=color3 and then the sequence is calculated with the formula. so far i have managed to "solve' all color combination up to 12 mixing steps but now it takes a lot of time and some combination are made of over 100 mixing steps. I code with vb or matlab. thanks. 
June 11th, 2012, 05:39 AM  #2  
Math Team Joined: Sep 2007 Posts: 2,409 Thanks: 6  Re: color mixing riddle Quote:
Quote:
 
June 11th, 2012, 06:19 AM  #3 
Newbie Joined: Jun 2012 Posts: 4 Thanks: 0  Re: color mixing riddle
Yes

June 11th, 2012, 06:38 AM  #4 
Newbie Joined: Jun 2012 Posts: 4 Thanks: 0  Re: color mixing riddle
An example : color1 : R:150, B:0, G:255 color2 : R:255, B:150, G:0 color3 ; R:0, B:255, G:150 if i want to mix color1 as main with color3 : new color (R,B,G) = (floor(0.9*150)+floor(0.1*0) , floor(0.9*0)+floor(0.1*255) , floor(0.9*255)+floor(0.1*150) ) = (135, 25, 244) now i can mix the "new color" again with basic colors or with other "new colors". Thanks. 
June 15th, 2012, 08:33 PM  #5 
Newbie Joined: Jun 2012 Posts: 4 Thanks: 0  Re: color mixing riddle
Anyone ?


Tags 
color, mixing, riddle 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
color of sphere  tejolson  Real Analysis  0  November 21st, 2013 08:28 PM 
expression in mixing problem  finalight  Calculus  11  February 29th, 2012 08:48 PM 
4 Color Theorem  mattneary  Real Analysis  1  June 20th, 2011 10:13 AM 
Mixing problem as concentration  Singularity  Applied Math  2  August 21st, 2010 11:04 AM 
Mixing Candy  symmetry  Algebra  1  June 7th, 2007 07:13 AM 