You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ echo $hex->darken(15);
39
39
40
40
There are only two methods, that both accept just one parameter.
41
41
42
+
The constructor accepts one parameter (`hex`) which can optionally contain a hashtag (#). The length has to be between 3-6 characters (without the hashtag).
43
+
42
44
### `lighten($percentage)`
43
45
44
46
Will lighten the color by X percentage. Percentage must be between 0-100. An exception will be thrown otherwise.
0 commit comments