Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Color Minor Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo082 committed May 23, 2017
1 parent ec8e79c commit 8610cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function lighten(float $delta = 0.7): Color {
* @param string $hex
* @return Color
*/
public static function randomFromHex(string $hex): Color {
public static function fromHex(string $hex): Color {
list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x");
return new Color($r, $g, $b, 1);
}
Expand Down

0 comments on commit 8610cc3

Please sign in to comment.