We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 877e2f7 + ce7998c commit dca0549Copy full SHA for dca0549
lib/Primal/Color/Parser.php
@@ -81,7 +81,7 @@ function hsl () {$this->result = new HSLColor((int)$this->chunks[1], (int)$this
81
function hsva () {$this->result = new HSVColor((int)$this->chunks[1], (int)$this->chunks[2], (int)$this->chunks[3], (float)$this->chunks[4]);}
82
function hsv () {$this->result = new HSVColor((int)$this->chunks[1], (int)$this->chunks[2], (int)$this->chunks[3]);}
83
function hex6 () {$this->result = new RGBColor(hexdec($this->chunks[1]), hexdec($this->chunks[2]), hexdec($this->chunks[3]));}
84
- function hex3 () {$this->result = new RGBColor(hexdec($this->chunks[1])*16, hexdec($this->chunks[2])*16, hexdec($this->chunks[3])*16);}
+ function hex3 () {$this->result = new RGBColor(hexdec($this->chunks[1].$this->chunks[1]), hexdec($this->chunks[2].$this->chunks[2]), hexdec($this->chunks[3].$this->chunks[3]));}
85
86
87
static $patterns = array(
0 commit comments