Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
D
»
How to set font color?
Print
Pages: [
1
]
Author
Topic: How to set font color? (Read 9059 times)
0 Members and 1 Guest are viewing this topic.
RobotGymnast
Jr. Member
Posts: 56
How to set font color?
«
on:
January 30, 2011, 09:16:37 pm »
How does one set the color of text?
Logged
JAssange
Full Member
Posts: 104
Re: How to set font color?
«
Reply #1 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) );
Logged
Trass3r
Jr. Member
Posts: 91
How to set font color?
«
Reply #2 on:
January 30, 2011, 10:34:46 pm »
The D wrapper uses proper D properties style, i.e. text.color = Color(255,.....);
Logged
RobotGymnast
Jr. Member
Posts: 56
How to set font color?
«
Reply #3 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
Logged
Guest
How to set font color?
«
Reply #4 on:
September 29, 2011, 01:05:49 pm »
May i know? for which language you are asking?
Cegonsoft
_________________________
Cegonsoft foundation
Logged
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
D
»
How to set font color?
anything