SFML community forums

Bindings - other languages => D => Topic started by: RobotGymnast on January 30, 2011, 09:16:37 pm

Title: How to set font color?
Post by: RobotGymnast on January 30, 2011, 09:16:37 pm
How does one set the color of text?
Title: Re: How to set font color?
Post by: JAssange on January 30, 2011, 10:20:44 pm
Quote from: "RobotGymnast"
How does one set the color of text?

textName.SetColor( Color(255,200,20,255) );
Title: How to set font color?
Post by: Trass3r on January 30, 2011, 10:34:46 pm
The D wrapper uses proper D properties style, i.e. text.color = Color(255,.....);
Title: How to set font color?
Post by: RobotGymnast on January 30, 2011, 10:51:57 pm
Ah, sorry. The reason it wasn't working for me was because of a name conflict I'd created, not because the .color property wasn't working. Thanks
Title: How to set font color?
Post by: on September 29, 2011, 01:05:49 pm
May i know? for which language you are asking?

Cegonsoft (http://www.i3itpeople.com/)
_________________________
Cegonsoft foundation (http://www.i3itpeople.com/)