Simple Simon Discussion > Colors

I want one of the buttons to be pink. How do I do that?

April 22, 2008 | Registered CommenterRob

Well, i'm not 100% with C# but I know about colours. Since I haven't seen the code this is guess work. I have seen the button image so thats all I need. As it shows it shows that its white.

Please bare in mind that I don't know C#.

Using an RGB command would you set the Red Green and Blue properties of the duplicated object. Since RGB ranges from 0 - 255 per colour its just mixing colours from this point onwards, so an

RGB of (255, 0, 255)

would produce a pink colour. If I could see your source then its a simple matter of chainging your already defined colour properties.

Sorry if it was a bit vague, as a third reminder, I don't know C#.

I think you should ask, Why would I want to do that ? Thats the real question.

April 26, 2008 | Unregistered CommenterJDog

In the load content where you add the squares, change for example the last square that is red to maybe something like: Color.DeepPink and Color.Pink not sure if that would be the best choice of colors though.

May 2, 2008 | Unregistered CommenterTomas

The best way is just to change the colour of the light that "shines" on the texture. One of the neat things about drawing textures in XNA is that you can use a particular coloured light to illuminate them and, since the button artwork is actually grey it will take up the colour of whatever light you shine.

May 9, 2008 | Registered CommenterRob