A simple style outcome question

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
sculpteur
Veteran
Posts: 312
Joined: Fri Nov 17, 2017 6:40 pm
Completed: Apocalypse Lovers
Projects: Apocalypse Lovers
Organization: Awake_Production
Location: France
Discord: https://discord.gg/apocalypse-lovers
Contact:

A simple style outcome question

#1 Post by sculpteur »

Hi,
I've been doing a lot of testing but I'm still not able to explain this :

Code: Select all

    style.tips_top.outlines=[(3, "6b7eef", 0,0)]
I would like to know what this is doing (the numbers).
I know it 'outline' the text with an other color (different from the main one), but I don't know what the parametters are changing.

3 = ?
6b7eef = The color, (pretty obvious).
0 = ?
0 = ?

Thanks !
Image

“He asked me to calm down, close my eyes and be quiet. He explained to me that if I was afraid, the shadow that ran barefoot in the street would feel it. I got scared seeing Jumanji on TV, so let me tell you, we didn't stay hidden for long and had to start running again.”
Jessica's Diary.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: A simple style outcome question

#2 Post by Ocelot »

You can always check RenPy documentation.
Documentation wrote: outlines - list of tuple of (int, color, int, int)

This is a list of outlines that are drawn behind the text. Each tuple specifies an outline, and outlines are drawn from back to front.

The list contains (size, color, xoffset, yoffset) tuples. Size is the amount the font is expanded by, in pixels. Color is the color of the outline. xoffset and yoffset are the amount the outline is shifted by, in pixels.

The outline functionality can also be used to give drop-shadows to fonts, by specifying a size of 0 and non-zero offsets.

By default, size, xoffset and yoffset are scaled with the text. When given as the absolute type, they are not scaled. For example:

Code: Select all

    style default:
        outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
will always produce a 1 pixel-wide border.

Outlines only work with truetype fonts.
< < insert Rick Cook quote here > >

sculpteur
Veteran
Posts: 312
Joined: Fri Nov 17, 2017 6:40 pm
Completed: Apocalypse Lovers
Projects: Apocalypse Lovers
Organization: Awake_Production
Location: France
Discord: https://discord.gg/apocalypse-lovers
Contact:

Re: A simple style outcome question

#3 Post by sculpteur »

Thank you ! I didn't find it when I was looking for it in Renpy Documentation.
I probably put the wrong key words.
I will try to search it better next time.
Image

“He asked me to calm down, close my eyes and be quiet. He explained to me that if I was afraid, the shadow that ran barefoot in the street would feel it. I got scared seeing Jumanji on TV, so let me tell you, we didn't stay hidden for long and had to start running again.”
Jessica's Diary.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]