@@ 212-213 (lines=2) @@ | ||
209 | } else { |
|
210 | return sprintf('rgb(%d, %d, %d, %s)', $this->r, $this->g, $this->b, round($this->a, 4)); |
|
211 | } |
|
212 | case self::COLOR_RGBA: |
|
213 | return sprintf('rgba(%d, %d, %d, %s)', $this->r, $this->g, $this->b, round($this->a, 4)); |
|
214 | case self::COLOR_HSL: |
|
215 | $val = self::rgbToHsl($this->r, $this->g, $this->b); |
|
216 | if ($this->a === 1.0) { |
|
@@ 237-238 (lines=2) @@ | ||
234 | } else { |
|
235 | return false; |
|
236 | } |
|
237 | case self::COLOR_HEX_8: |
|
238 | return sprintf('#%02X%02X%02X%02X', $this->r, $this->g, $this->b, round($this->a * 0xFF)); |
|
239 | } |
|
240 | ||
241 | return false; |