src/Marando/Color/Color.php
public function dist(Color $c)
    {
        return sqrt(
          ($c->r - $this->r) ** 2 +
          ($c->g - $this->g) ** 2 +
          ($c->b - $this->b) ** 2
        );
    }
public function dist(Color $c)
    {
        return sqrt(
          ($c->r - $this->r) ** 2 +
          ($c->g - $this->g) ** 2 +
          ($c->b - $this->b) ** 2
        );
    }
public function dist ( Color $ c ) { return sqrt ( ( $ c -> r - $ this -> r ) ** 2 + ( $ c -> g - $ this -> g ) ** 2 + ( $ c -> b - $ this -> b ) ** 2 ) ; }
Calculates the distance between this color and another.

@param Color $c

@return float
Calculates the distance between this color and another .