function current() { $h = $this->startHue + $this->step * ($this->position % $this->luminance_step); $s = $this->startSat; $l = $this->lum + $this->luminance_delta * (floor($this->position / $this->luminance_step) * 10); if ($l < 0) { $l = 100 + $l; } $l = ($l - $this->luminance_pad_left) % (100 - ($this->luminance_pad_right + $this->luminance_pad_left)) + $this->luminance_pad_left; $col = new HSLColor($h, $s, $l); return $col->toRGB()->toHex(); }