Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting font color #1

Closed
montanaflynn opened this issue Feb 23, 2016 · 3 comments
Closed

Setting font color #1

montanaflynn opened this issue Feb 23, 2016 · 3 comments

Comments

@montanaflynn
Copy link

I'm trying to set some text to white using SetRGB(255, 255, 255) but the color stays black.

More info and full code here: montanaflynn/meme-generator#1

@montanaflynn
Copy link
Author

After switching to SetRGB255(255,255,255) it worked, SetRGB only works with floats between 0 and 1.0 whereas I wanted SetRGB255(r,g,b int).

@fogleman
Copy link
Owner

Yep.

I suppose SetRGB should clamp to [0, 1] range. But also I should document these functions!

@iKonrad
Copy link

iKonrad commented Jun 11, 2017

Thanks, I had the very same problem and SetRGB255 seems to work.

Coloured-glaze pushed a commit to Coloured-glaze/gg that referenced this issue Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants