public function getByIndex($index)
    {
        if ($index === 0) return $this->darkGray;
        if ($index === 1) return $this->midColor;
        if ($index === 2) return $this->lightGray;
        if ($index === 3) return $this->lightColor;
        if ($index === 4) return $this->darkColor;
        return null;
    }
public function getByIndex($index)
    {
        if ($index === 0) return $this->darkGray;
        if ($index === 1) return $this->midColor;
        if ($index === 2) return $this->lightGray;
        if ($index === 3) return $this->lightColor;
        if ($index === 4) return $this->darkColor;
        return null;
    }
public function getByIndex ( $ index ) { if ( $ index === 0 ) return $ this -> darkGray ; if ( $ index === 1 ) return $ this -> midColor ; if ( $ index === 2 ) return $ this -> lightGray ; if ( $ index === 3 ) return $ this -> lightColor ; if ( $ index === 4 ) return $ this -> darkColor ; return null ; }
Gets a color from this color theme by index.

@param int $index Color index in the range [0, getCount()).
@return Jdenticon\Color
Gets a color from this color theme by index .