Skip to content

Commit

Permalink
Add a small precision to the readme (#5)
Browse files Browse the repository at this point in the history
I though that it could be usefull to add how the color is outputed as a comment
  • Loading branch information
apiaget authored Feb 26, 2024
1 parent 6e51320 commit 8f8f4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $gradient = Gradient::fromColors($colors);
$color = $gradient->colorAtGradientPosition(18);

// print the color
echo $color;
echo $color; // rgb(167, 92, 139)

// or get r, g, b values
$r = $color->getR();
Expand Down

0 comments on commit 8f8f4f5

Please sign in to comment.