Skip to content

Commit

Permalink
- Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
elusivecodes committed Oct 30, 2024
1 parent 0b20769 commit ee3a0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ $color = Color::fromHSV($hue, $saturation, $value, $alpha);

Get a HTML string representation of the color.

The `$colorString` returned will be a string containing either a HTML color name (if one exists), a hexadecimal string (if alpha is *1*) or an RGBA string.

```php
$colorString = $color->toString();
```

The `$colorString` returned will be a string containing either a HTML color name (if one exists), a hexadecimal string (if alpha is *1*) or an RGBA string.

**To Hex String**

Get a hexadecimal string representation of the color.
Expand Down

0 comments on commit ee3a0d9

Please sign in to comment.