Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed #7
  • Loading branch information
TorbenKoehn authored Jun 8, 2018
1 parent c3dc0e0 commit 6dfdf4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ Color::getColorHueRange(Color::get('rgba(80, 0, 0)')); //Color::HUE_RANGE_RED
//Gets the hexadecimal representation of a color.
//Notice that it will turn an Alpha-color into a 4-channel hexadecimal string, because it can also parse them.
//If you want to use the hex value in CSS or HTML, use `toRgb()` on the color before to strip the alpha channel
Color::getHexString($color);
Color::toHexString($color);

//Gets the integer representation of a color (including support for alpha channel)
Color::getInt($color);
Color::toInt($color);

//Get the name of a color. Many colors don't have names, it will return a hex-representation in this case
Color::getName($color);
Color::toName($color);
```

---
Expand Down Expand Up @@ -645,4 +645,4 @@ If you like my work, it helped you in some way, eased up work for you or anythin
- http://www.tigercolor.com/color-lab/color-theory/color-theory-intro.htm
- https://gist.github.com/mjackson/5311256
- https://raw.githubusercontent.com/RnbwNoise/ImageAffineMatrix/master/ImageAffineMatrix.php
- https://github.com/Qix-/color-convert/blob/master/conversions.js
- https://github.com/Qix-/color-convert/blob/master/conversions.js

0 comments on commit 6dfdf4b

Please sign in to comment.