lib/rothko.rb
def find_distance(color1, color2)
      delta_r = color1[0] - color2[0];
      delta_g = color1[1] - color2[1];
      delta_b = color1[2] - color2[2];
      delta_r * delta_r + delta_g * delta_g + delta_b * delta_b
    end
def find_distance(color1, color2)
      delta_r = color1[0] - color2[0];
      delta_g = color1[1] - color2[1];
      delta_b = color1[2] - color2[2];
      delta_r * delta_r + delta_g * delta_g + delta_b * delta_b
    end
def find_distance ( color1 , color2 ) delta_r = color1 [ 0 ] - color2 [ 0 ] ; delta_g = color1 [ 1 ] - color2 [ 1 ] ; delta_b = color1 [ 2 ] - color2 [ 2 ] ; delta_r * delta_r + delta_g * delta_g + delta_b * delta_b end
Helprt method
Helprt method