public function getColor($model)
    {
        $width = isset($model['css']['width']) ? $model['css']['width'] : $this->getWidth($model);
        foreach ($this->panel->colors as $percent => $color) {
            if ($width >= $percent) {
                return $color;
            }
        }
        return '#d6e685';
    }
public function getColor($model)
    {
        $width = isset($model['css']['width']) ? $model['css']['width'] : $this->getWidth($model);
        foreach ($this->panel->colors as $percent => $color) {
            if ($width >= $percent) {
                return $color;
            }
        }
        return '#d6e685';
    }
public function getColor ( $ model ) { $ width = isset ( $ model [ 'css' ] [ 'width' ] ) ? $ model [ 'css' ] [ 'width' ] : $ this -> getWidth ( $ model ) ; foreach ( $ this -> panel -> colors as $ percent => $ color ) { if ( $ width >= $ percent ) { return $ color ; } } return '#d6e685' ; }
Getting HEX color based on model duration
@param array $model
@return string
Getting HEX color based on model duration