Skip to content

Commit 1b6a0fa

Browse files
authored
Merge pull request #3 from smncd/fix-readme-example
Fix readme "getting started" example
2 parents 434bfee + 8bf88c5 commit 1b6a0fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ $hexColor = colority()->fromHex('51B389');
4646
$hexColor = colority()->fromHex('#ABC');
4747

4848
/** @var HslColor $hslColor */
49-
$hslColor = colority()->fromRgb('hsl(168.31deg, 49.58%, 46.67%)');
50-
$hslColor = colority()->fromRgb('168.31, 49.58, 46.67');
51-
$hslColor = colority()->fromRgb([168.31, 49.58, 46.67]);
49+
$hslColor = colority()->fromHsl('hsl(168.31deg, 49.58%, 46.67%)');
50+
$hslColor = colority()->fromHsl('168.31, 49.58, 46.67');
51+
$hslColor = colority()->fromHsl([168.31, 49.58, 46.67]);
5252
```
5353
If you cannot specify the original format of the value color, you can use the `parse` method. This will detect what type of color it is and instantiate a new object or, if the received string does not match any type of color, it will return `NULL`:
5454
```php

0 commit comments

Comments
 (0)