Jump to content
Yori

Como funciona el color en python??

Recommended Posts

wenas

No se si este post va aqui, porque como es una pregunta pero tambien sobre python no se....

 

Mi duda es saber como funcionan los colores

"r":1.0,
"g":0,
"b":0,
"a":1.0,

es decir, que numeros tengo que poner para sacar por ejemplo un color dorado, no entiendo este sistema de colores

ayuda plis

 

Saludos

Share this post


Link to post
Share on other sites

print '033[1;30mGray like Ghost033[1;m'
print '033[1;31mRed like Radish033[1;m'
print '033[1;32mGreen like Grass033[1;m'
print '033[1;33mYellow like Yolk033[1;m'
print '033[1;34mBlue like Blood033[1;m'
print '033[1;35mMagenta like Mimosa033[1;m'
print '033[1;36mCyan like Caribbean033[1;m'
print '033[1;37mWhite like Whipped Cream033[1;m'
print '033[1;38mCrimson like Chianti033[1;m'
print '033[1;41mHighlighted Red like Radish033[1;m'
print '033[1;42mHighlighted Green like Grass033[1;m'
print '033[1;43mHighlighted Brown like Bear033[1;m'
print '033[1;44mHighlighted Blue like Blood033[1;m'
print '033[1;45mHighlighted Magenta like Mimosa033[1;m'
print '033[1;46mHighlighted Cyan like Caribbean033[1;m'
print '033[1;47mHighlighted Gray like Ghost033[1;m'
print '033[1;48mHighlighted Crimson like Chianti033[1;m'

El texto lo debes colocar entre:

print '033[1;30mtu texto[1;m'

Para que te hagas una idea esto quedaría así:

 

Imagen enviada

Share this post


Link to post
Share on other sites

pero eso no se usa en metin2, a lo mejor es culpa mia y no es python lo que yo quiero, pero como el archivo tiene .py ... nose, te dejo un codigo para que veas un ejemplo de como son:

 

este es el restartdialog.py del uiscript.epk

 

import uiScriptLocale
ROOT = "d:/ymir work/ui/public/"
window = {
"name" : "RestartDialog",
"style" : ("float",),
"x" : SCREEN_WIDTH/2 - 100,
"y" : SCREEN_HEIGHT/4 ,
"width" : 200,
"height" : 88,
"children" :
(
  {
   "name" : "board",
   "type" : "thinboard",
   "x" : 0,
   "y" : 0,
   "width" : 200,
   "height" : 88,
   "r" : 0.3333,
   "g" : 0.2941,
   "b" : 0.2588,
   "a" : 1.0,
   "children" :
   (
	{
	 "name" : "restart_here_button",
	 "type" : "button",
	 "x" : 10,
	 "y" : 17,
	 "text" : uiScriptLocale.RESTART_HERE,
	 "default_image" : ROOT + "XLarge_Button_01.sub",
	 "over_image" : ROOT + "XLarge_Button_02.sub",
	 "down_image" : ROOT + "XLarge_Button_03.sub",
	},
	{
	 "name" : "restart_town_button",
	 "type" : "button",
	 "x" : 10,
	 "y" : 47,
	 "text" : uiScriptLocale.RESTART_TOWN,
	 "default_image" : ROOT + "XLarge_Button_01.sub",
	 "over_image" : ROOT + "XLarge_Button_02.sub",
	 "down_image" : ROOT + "XLarge_Button_03.sub",
	},
   ),
  },
),
}

Saludos

Share this post


Link to post
Share on other sites

al final tras mucho prueba y error y a base de mirar ejemplos logre lo que buscaba, por fin!!! xD

esos numeros se mueven en una escala de 0.0 a 1.0 y son porcentajes, es decir el "r" = 1.0, quiere decir un 100% de rojo, o lo que es lo mismo un 255 en decimal o un ff en hex.

 

Queria dar la solucion por si alguien tenia la misma duda.

 

Saludos

Share this post


Link to post
Share on other sites

This leads to cured breathing,less recoil from pain and increased circulationLining 3D toils is a light-weight, 3D woven structure and is greatly breathableMBT OUTLETSThe Fora is the sportiest women鈥檚 MBT by any chance, combining both performance and comfortOnitsuka Tiger worked with Marathon runner Tooru Terasaw in 1953 to ripen a running shoe that would keep large coolness runners from developing blisters The particular

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
toe sheets away (without force)Because of its smart draft and good-looking demeanour The number of science and technology combined with each other, so that the wearer to prevent maltreatment at the same time, derive pleasure more sports festivity! In 1949, in Kobe, Japan, Onitsuka Kihachiro (KIHACHIRO ONITSUKA), founded ASICS predecessorPlease provide us a itemized and reprove articulation deliver so that Product correctly and safely arrive

Share this post


Link to post
Share on other sites
Guest leahutf   
Guest leahutf

The car shell of Protoform Lexus LFA The Protoform uncover the perplexing veil of Lexus LFA heap shell Now the indigenous has three more popular vehicles,there are one-tenth electric touring crate, one-tenth Nitro car, one-eighth truck and one-eighth Nitro off-road vehicles and so on,in days, we will be in-depth introduction on each vehicle type, you can according to the characteristics of each vehicle selected favorite RC Motor car, abate us together round the perfect dreamThe Yokomo launched the new 12 young R12C (one-twelfth electrifying flat road vehicles),the R12C is precisely imitation the chariots of the 12 young world champion Naoto Matsukura used in 2012This machine shell of Slash used was the Robby Gordon driving in Dakar race, high performance transmission system and meet sealing performance, let the Slash without fear of mud, snow and any truth pavement, it merit to be called real all terrain remote control carSpeedMerchant OR-18, one-eighteenth auto shellSpeedMerchant launched a one-eighteenth remote device machine (flat road) car shell,named OR-18 2 of AE is utterly top product,the traditional connivance of stimulating off-road and new height performance components, dissatisfy the stimulating off-road can capture the world's each big contention terrainSchmacher remote repress car has a huge number of fans in Europe, the feat is obvious

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
to all,it is a pity that it is not too popular in the Asian marketBittydesign Striker - SR 2

Share this post


Link to post
Share on other sites
Guest kennyvrxr   
Guest kennyvrxr

Commodities decreased up to 0.9 % in The big apple soon after dropping 2.Five percent last week. The U . s . Nations' 5 everlasting Stability Council members in addition Germany will see Iranian international delegates in Baghdad about Might Twenty-three soon after "constructive" talks throughout Istanbul upon Apr 18, the eu Union's foreign coverage primary explained last night. Essential oil innovative in 2010 in the middle of issue in which stress with Iran might interrupt global materials..

Several. Well kept property: Buyers you will need to commit a great deal of money to get a well kept home. They will put on wish to spend cash right after beginning to are in the house. I've done 26" styles which has a 12 mp, and when do you know what what you are doing and make use of an excellent printer it is faultless. In terms of lower sound * effectively, it's reduced, however I'm not really impressed. Remember your contacts will probably be A single.6 periods his or her major length, so it will be hard to

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
get extensive position with this digital camera.

Per煤. Filipinas. Islas de Pitcairn. First of all, you need to make certain that there is certainly sufficient location at home. Nj Inground Regularly might be of different measurements. Nonetheless, using a smaller pool area in the home does not really assist you to.

She ended up being riled in addition she had been given out along with and so set up a notion on the forum requesting pertaining to guidance. This specific discussion board had been position highly for the business's manufacturer brand identify. This is simply not very good. Precisely what I have stated previously pointed out would be the exceptional positive aspects in which crochet shoes or boots boasts. You can look for some TOMS Athletic shoes in your web site. At the same time, if you'd like to by simply other kind associated with athletic shoes, you additionally looks pertaining to into it

If you have lower archways, go with a running shoe along with motion manage to safeguard you against base injuries. But when you have large archways, motion control shoes are not really to suit your needs. Alternatively, you should decide on cushioned athletic shoes.. Ileal get around with regard to bodyweight problems6. Bowel ailmentseven. Kidney tubule defectseight.

Mary-Kate and Ashley Olsen have already been big names nearly all their lives--first because actresses, next as manner darlings. From Florida, your baby twins showed up around the Artist landscape in seven weeks outdated to play Michelle Tanner in Full Residence. Several seasons, videos, TV shows, and made-for-TV videos followed--but while they received older, their own fashion sense and fascination with fashion did start to present..

If you possess indicates, support successful NGOs and also charitable groups. There are millions of agencies around the globe that are saving lives everyday. 5 various buck contribution could be the one which wraps up buying antiretroviral drugs to have an Assists patient, or perhaps provide water that is clean usage of a family group which in the past needed to walk for miles..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...