Renpy Color Hex ? [SOLVED]

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
User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Renpy Color Hex ? [SOLVED]

#1 Post by pratomoastan » Mon Jun 20, 2016 12:35 pm

I want to know whats the renpy color hex ?
Is this hex can be used in renpy ?

Code: Select all

#b0e0e6 
#00002d 
#00004c 
#000080 
#294061 
#62966b 
#658036 
#b3b3b3 
#7d9099 
#73247b 
#70058c 
#73066e 
#aac7c1 
#219859 
#d3ffce 
#406244 
#2c6744 
#ffffdd 
#70058c 
#73247b 
#73066e 
#7d9099 
#00ffff 
#00fffd 
#00ffdd 
#698695 
#b2ad93 
#b3b3b3 
#7d7594 
#2c6c87 
#2a315f 
#815522 
#7ba649 
#95919d 
#da32d9 
#e6099f 
#294061 
#868aad 
#62966b 
#896a27 
#789539 
#45a97e


Last edited by pratomoastan on Sun Jul 03, 2016 11:59 am, edited 1 time in total.
~ Sempai !!!

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Renpy Color Hex ?

#2 Post by Alex » Mon Jun 20, 2016 3:57 pm

Why wouldn't just try this?
Something like

Code: Select all

image p_blue = Solid("#b0e0e6")
label start:
    scene p_blue
    "?"

User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Renpy Color Hex ?

#3 Post by xavimat » Mon Jun 20, 2016 5:20 pm

From the doc: https://www.renpy.org/doc/html/style_pr ... rty-values
color
Colors in Ren'Py can be expressed as strings beginning with the hash mark (#), followed by a hex triple or hex quadruple, with each of the three or four elements consisting of a one or two hexadecimal character color code.
In a triple, the components represent red, green, and blue. In a quadruple, the components represent red, green, blue, and alpha. For example:
"#f00" and "#ff0000" represent an opaque red color.
"#0f08" and #00ff0080" represent a semi-transparent green color.
The color triples are the same as used in HTML.
Colors can also be represented as a 4-component tuple, with the 4 components being integers between 0 and 255. The components correspond to red, green, blue, and alpha, in that order.
(0, 0, 255, 255) represents an opaque blue color.
Finally, colors can be an instance of Color.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Re: Renpy Color Hex ?

#4 Post by pratomoastan » Tue Jun 21, 2016 12:40 am

xavimat wrote:From the doc: https://www.renpy.org/doc/html/style_pr ... rty-values
color
The color triples are the same as used in HTML.
Colors can also be represented as a 4-component tuple, with the 4 components being integers between 0 and 255. The components correspond to red, green, blue, and alpha, in that order.
(0, 0, 255, 255) represents an opaque blue color.
Okaaay Thanks for the answer !!
~ Sempai !!!

Post Reply

Who is online

Users browsing this forum: No registered users