NAME
GetPlanetColor
Get the color of a planet as configured in Proastro. The planet has a color per sign and different colors if it is direct or retro
USAGE
GetPlanetColor nPlanet nSign {-pen | -brush} [-retro]
PARAMETERS
nPlanet:
the planet number
nSign:
the sign number
OPTIONS
-pen:
the pen color used to draw the planet
-brush:
the brush color used to draw the planet
-retro:
to get the color when the planet is retro
RETURN
Return a string being the hexa RGB value of the color
EXAMPLE
PutTxt "---- Planets colors ----" for {set p 0 } { $p < 18} { incr p} { for {set s 0 } { $s < 12} { incr s} { PutTxt " Color of pen for planet $p [NameOfPlanet $p] in sign [NameOfSign $s] is [ GetPlanetColor $p $s -pen ] " PutTxt " Retro pen color for planet $p is [ GetPlanetColor $p $s -pen -retro] " PutTxt " Color of brush for planet $p [NameOfPlanet $p] in sign [NameOfSign $s] is [ GetPlanetColor $p $s -brush ] " PutTxt " Retro brush color for planet $p is [ GetPlanetColor $p $s -brush -retro] " } }
Output
Color of pen for planet 0 Soleil in sign Aries is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Aries is #FFFF00 Retro brush color for planet 0 is #FFFF00 Color of pen for planet 0 Soleil in sign Taurus is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Taurus is #FFFF00 Retro brush color for planet 0 is #FFFF00 Color of pen for planet 0 Soleil in sign Gemini is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Gemini is #FFFF00 Retro brush color for planet 0 is #FFFF00 Color of pen for planet 0 Soleil in sign Cancer is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Cancer is #FFFF00 Retro brush color for planet 0 is #FFFF00 Color of pen for planet 0 Soleil in sign Leo is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Leo is #FFFF00 Retro brush color for planet 0 is #FFFF00 Color of pen for planet 0 Soleil in sign Virgo is #000000 Retro pen color for planet 0 is #000000 Color of brush for planet 0 Soleil in sign Virgo is #FFFF00 Retro brush color for planet 0 is #FFFF00 .... Color of pen for planet 17 Arudha in sign Pisces is #000000 Retro pen color for planet 17 is #000000 Color of brush for planet 17 Arudha in sign Pisces is #FF00FF Retro brush color for planet 17 is #FF00FF