Skip to content

Commit 5f181dc

Browse files
authored
README: add RGB color conversion example
1 parent 8881e72 commit 5f181dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ conv.hsluv_s = 75;
5757
conv.hsluv_l = 65;
5858
conv.hsluvToHex();
5959
System.out.println(conv.hex); // Will print "#ec7d82"
60+
double[] rgb = new double[] {conv.rgb_r, conv.rgb_g, conv.rgb_b};
61+
Color color = new Color(rgb[0], rgb[1], rgb[2]);
6062
```
6163

6264
# Testing

0 commit comments

Comments
 (0)