Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to set font color?  (Read 7097 times)

0 Members and 1 Guest are viewing this topic.

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to set font color?
« on: January 30, 2011, 09:16:37 pm »
How does one set the color of text?

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
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) );

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
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,.....);

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
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

  • 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