r/qb64 • u/TheOuterLinux • Jul 27 '19
Why are the RGB values wrong? It does this on QBX too.
https://theouterlinux.gitlab.io/website/Downloads/COLORHLP.BAS
2
Upvotes
r/qb64 • u/TheOuterLinux • Jul 27 '19
1
u/TheOuterLinux Jul 27 '19
I was trying to come up with something to save me time from having to use GPick or some other color picker to get RGB values of color numbers. However, the RGB values for the output of this script are wrong. How do I fix this?
1
u/[deleted] Jul 28 '19
They aren't wrong. RGB values are going from 0 to 63 here, and that's alright. You want an output that's in more common range such as 0-255, just make it * 4:
Or, if you're using QB64, just use _RED(), _GREEN() and _BLUE():