How do I change font color

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
IxIoN
Regular
Posts: 160
Joined: Sat Jan 16, 2010 12:51 pm
Projects: Thinking
Location: Venezuela
Contact:

How do I change font color

#1 Post by IxIoN »

Noob question after a long time >_>

I thought at first it'd be something really easy but... well... I can't find any way to do it.

Can someone tell me how to do it? Thanks in advance.
This is my World.
Look forward to my game.
Thinking

Requiem
Newbie
Posts: 13
Joined: Fri Jul 09, 2010 11:45 am
Projects: Falling Cherry Blossoms
Contact:

Re: How do I change font color

#2 Post by Requiem »

Simple ^_^

Code: Select all

label start:

Bob "Hi there, this is {color=#666666} how to change the color of your font{/color}
#666666 is a grey color.
Replace the #666666 with any Hex Color code you wish :3
Image
A work in progress

fortaat
Regular
Posts: 183
Joined: Tue May 18, 2010 1:16 pm
Contact:

Re: How do I change font color

#3 Post by fortaat »

If you mean the character's font color, than:

$ clara = Character('clara ', color="#FF1236")


And here's a color chart:

http://www.theodora.com/html_colors.html

IxIoN
Regular
Posts: 160
Joined: Sat Jan 16, 2010 12:51 pm
Projects: Thinking
Location: Venezuela
Contact:

Re: How do I change font color

#4 Post by IxIoN »

I'm actually asking how to change the default font color because the default is white but I want it to be black because the text window I have is white.
This is my World.
Look forward to my game.
Thinking

Zumi
Regular
Posts: 89
Joined: Fri Sep 11, 2009 9:28 pm
Contact:

Re: How do I change font color

#5 Post by Zumi »

Code: Select all

style.default.color = "#000"

IxIoN
Regular
Posts: 160
Joined: Sat Jan 16, 2010 12:51 pm
Projects: Thinking
Location: Venezuela
Contact:

Re: How do I change font color

#6 Post by IxIoN »

That's exactly what I wanted. Thanks everyone for paying attention to such a noob question =P
This is my World.
Look forward to my game.
Thinking

Post Reply

Who is online

Users browsing this forum: Google [Bot]