protected function _set_opacity($opacity) { if (is_numeric($opacity) && $opacity <= 1.0 && $opacity >= 0.0) { $this->_canvas->set_opacity($opacity); } }