Grayscale drawing...how?

Understanding the language, error messages, etc.

Grayscale drawing...how?

Postby JWinslow23 » Sat Apr 04, 2015 11:58 pm

In the beta branch of the Gamebuino library over at Github, it mentions a color GRAY. How do I use it with drawing commands? It would be nice to see how it would work with all drawing commands. Thank you.
User avatar
JWinslow23
 
Posts: 36
Joined: Sun Feb 22, 2015 8:16 pm

Re: Grayscale drawing...how?

Postby Sorunome » Sun Apr 05, 2015 10:17 am

Looking at the source it seems like you have the color GRAY for setColor. https://github.com/Rodot/Gamebuino/blob ... play.h#L65

So try something like gb.setColor(GRAY)
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Re: Grayscale drawing...how?

Postby rodot » Mon Apr 06, 2015 9:53 am

Yup, you can use the color GRAY (only in the beta branch so far), you can find some explanations and an examples on the gb.setColor page of the Reference.
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Grayscale drawing...how?

Postby JWinslow23 » Sat Apr 11, 2015 8:16 pm

Got it, thanks.
User avatar
JWinslow23
 
Posts: 36
Joined: Sun Feb 22, 2015 8:16 pm


Return to Programming Questions

Who is online

Users browsing this forum: No registered users and 70 guests

cron