Jypeli 10
The simple game programming library
Jypeli.Color tietuereferenssi

Väri. Lisää...

Julkiset jäsenfunktiot

 Color (byte red, byte green, byte blue)
 Uusi väri Lisää...
 
 Color (byte red, byte green, byte blue, byte alpha)
 Uusi väri Lisää...
 
 Color (Color rgb, byte alpha)
 Uusi väri aiemman pohjalta uudella läpinäkyvyydellä Lisää...
 
 Color (double red, double green, double blue)
 Uusi väri Lisää...
 
 Color (double red, double green, double blue, double alpha)
 Uusi väri Lisää...
 
 Color (int red, int green, int blue)
 Uusi väri Lisää...
 
 Color (int red, int green, int blue, int alpha)
 Uusi väri Lisää...
 
override bool Equals (Object c2)
 
override int GetHashCode ()
 
int ToInt ()
 Muuttaa värin ARGB-kokonaisluvuksi Lisää...
 
int ToIntRGB ()
 Muuttaa värin RGB-kokonaisluvuksi Lisää...
 
override string ToString ()
 Palautetaan väri heksamerkkijonona Lisää...
 
string ToString (bool alpha)
 Palautetaan väri heksamerkkijonona. Lisää...
 
uint ToUInt ()
 Muuttaa värin ARGB-kokonaisluvuksi Lisää...
 

Staattiset julkiset jäsenfunktiot

static Color Darker (Color c, int howMuch)
 Antaa tummemman värin. Vähentaa jokaista kolmea osaväriä arvon howMuch verran. Lisää...
 
static double Distance (Color a, Color b)
 Laskee kahden värin (euklidisen) etäisyyden RGB-väriavaruudessa. Värikomponentit ovat välillä 0-255 joten suurin mahdollinen etäisyys (musta ja valkoinen) on noin 441,68. Lisää...
 
static Color FromHexCode (string hexString)
 Palauttaa heksakoodia vastaavan värin. Lisää...
 
static Color FromPaintDotNet (int row, int col)
 Antaa värin Paint.net -ohjelman paletista. Lisää...
 
static byte GetAlpha (int c)
 Ottaa kokonaisluvusta alpha-arvon Lisää...
 
static byte GetAlpha (uint c)
 Ottaa kokonaisluvusta alpha-arvon Lisää...
 
static byte GetBlue (uint c)
 Ottaa kokonaisluvusta sinisen värin Lisää...
 
static byte GetGreen (uint c)
 Ottaa kokonaisluvusta vihreän värin Lisää...
 
static byte GetRed (uint c)
 Ottaa kokonaisluvusta punaisen värin Lisää...
 
static Color IntToColor (int c)
 Tekee kokonaisluvusta värin Lisää...
 
static Color Lerp (Color value1, Color value2, double amount)
 Lineaarinen interpolaatio värien välillä Lisää...
 
static Color Lighter (Color c, int howMuch)
 Antaa kirkkaamman värin. Kasvattaa jokaista kolmea osaväriä arvon howMuch verran. Lisää...
 
static Color Mix (params Color[] colors)
 Sekoittaa kahta tai useampaa väriä. Lisää...
 
static operator Color (XnaColor color)
 
static operator XnaColor (Color color)
 
static bool operator!= (Color c1, Color c2)
 
static bool operator!= (Color c1, int i2)
 
static bool operator!= (Color c1, uint i2)
 
static bool operator== (Color c1, Color c2)
 
static bool operator== (Color c1, int i2)
 
static bool operator== (Color c1, uint i2)
 
static uint PackRGB (byte r, byte g, byte b, byte a=255)
 Pakkaa kolme kokonaislukua väriä vastaavaksi kokonaisluvuksi Lisää...
 
static uint PackRGB (int r, int g, int b, int a=255)
 Pakkaa kolme kokonaislukua väriä vastaavaksi kokonaisluvuksi Lisää...
 
static Color UIntToColor (uint c)
 Tekee kokonaisluvusta värin Lisää...
 

Julkiset attribuutit

byte AlphaComponent
 Läpinäkymättömyys välillä 0-255 Lisää...
 
byte BlueComponent
 Sininen värikomponentti välillä 0-255 Lisää...
 
byte GreenComponent
 Vihreä värikomponentti välillä 0-255 Lisää...
 
byte RedComponent
 Punainen värikomponentti välillä 0-255 Lisää...
 

Staattiset julkiset attribuutit

static readonly Color Aqua = new Color( 0, 255, 255, 255 )
 Vedensininen. Lisää...
 
static readonly Color Aquamarine = new Color( 127, 255, 212, 255 )
 Akvamariini. Lisää...
 
static readonly Color AshGray = new Color( 178, 190, 181, 255 )
 Tuhkanharmaa. Lisää...
 
static readonly Color Azure = new Color( 0, 148, 255, 255 )
 Asuurinsininen. Lisää...
 
static readonly Color Beige = new Color( 245, 245, 220, 255 )
 Beessi. Lisää...
 
static readonly Color Black = new Color( 0, 0, 0, 255 )
 Musta. Lisää...
 
static readonly Color BloodRed = new Color( 127, 0, 55, 255 )
 Verenpunainen. Lisää...
 
static readonly Color Blue = new Color( 0, 0, 255, 255 )
 Sininen. Lisää...
 
static readonly Color BlueGray = new Color( 102, 153, 204, 255 )
 Siniharmaa. Lisää...
 
static readonly Color BrightGreen = new Color( 0, 255, 33, 255 )
 Kirkkaan vihreä. Lisää...
 
static readonly Color Brown = new Color( 127, 51, 0, 255 )
 Ruskea. Lisää...
 
static readonly Color BrownGreen = new Color( 91, 127, 0, 255 )
 Ruskeanvihreä. Lisää...
 
static readonly Color Charcoal = new Color( 54, 69, 79, 255 )
 Hiilenmusta. Lisää...
 
static readonly Color Crimson = new Color( 220, 20, 60, 255 )
 Karmiininpunainen. Lisää...
 
static readonly Color Cyan = new Color( 0, 255, 255, 255 )
 Syaani. Lisää...
 
static readonly Color DarkAzure = new Color( 0, 74, 127, 255 )
 Tumma asuuri. Lisää...
 
static readonly Color DarkBlue = new Color( 0, 19, 127, 255 )
 Tumma sininen. Lisää...
 
static readonly Color DarkBrown = new Color( 92, 64, 51, 255 )
 Tumma ruskea. Lisää...
 
static readonly Color DarkCyan = new Color( 0, 127, 127, 255 )
 Tumma syaani. Lisää...
 
static readonly Color DarkForestGreen = new Color( 0, 127, 14 )
 Tumma metsänvihreä. Lisää...
 
static readonly Color DarkGray = new Color( 64, 64, 64, 255 )
 Tumma harmaa. Lisää...
 
static readonly Color DarkGreen = new Color( 0, 100, 0, 255 )
 Tumma vihreä. Lisää...
 
static readonly Color DarkJungleGreen = new Color( 0, 127, 70, 255 )
 Tumma viidakonvihreä. Lisää...
 
static readonly Color DarkMagenta = Color.Purple
 Tumma magenta (purppura). Lisää...
 
static readonly Color DarkOrange = Color.Brown
 Tumma oranssi / ruskea. Lisää...
 
static readonly Color DarkRed = new Color( 127, 0, 0, 255 )
 Tumma punainen. Lisää...
 
static readonly Color DarkTurquoise = new Color( 0, 206, 209, 255 )
 Tumma turkoosi. Lisää...
 
static readonly Color DarkViolet = new Color( 87, 0, 127, 255 )
 Tumma violetti. Lisää...
 
static readonly Color DarkYellow = Color.Olive
 Tumma keltainen (oliivi). Lisää...
 
static readonly Color DarkYellowGreen = Color.BrownGreen
 Tumma keltavihreä (ruskeanvihreä). Lisää...
 
static readonly Color Emerald = new Color( 80, 200, 120, 255 )
 Smaragdinvihreä. Lisää...
 
static readonly Color ForestGreen = new Color( 38, 127, 0 )
 Metsänvihreä. Lisää...
 
static readonly Color Fuchsia = new Color( 255, 0, 255, 255 )
 Fuksia (pinkki) Lisää...
 
static readonly Color Gold = new Color( 255, 216, 0, 255 )
 Kulta. Lisää...
 
static readonly Color Gray = new Color( 128, 128, 128, 255 )
 Harmaa. Lisää...
 
static readonly Color Green = new Color( 0, 128, 0, 255 )
 Vihreä. Lisää...
 
static readonly Color GreenYellow = new Color( 173, 255, 47, 255 )
 Keltavihreä. Lisää...
 
static readonly Color HanPurple = new Color( 72, 0, 255, 255 )
 Sinipurppurainen väri Han-dynastian ajoilta. Lisää...
 
static readonly Color Harlequin = new Color( 76, 255, 0, 255 )
 Harlekiini (hieman keltaisella sävytetty kirkas vihreä). Lisää...
 
static readonly Color HotPink = new Color( 255, 105, 180, 255 )
 Pinkki. Lisää...
 
static readonly Color Ivory = new Color( 255, 255, 240, 255 )
 Norsunluu. Lisää...
 
static readonly Color JungleGreen = new Color( 41, 171, 135, 255 )
 Viidakonvihreä. Lisää...
 
static readonly Color Lavender = new Color( 220, 208, 255, 255 )
 Laventeli. Lisää...
 
static readonly Color LightBlue = new Color( 173, 216, 230, 255 )
 Vaalea sininen. Lisää...
 
static readonly Color LightCyan = new Color( 224, 255, 255, 255 )
 Vaalea syaani. Lisää...
 
static readonly Color LightGray = new Color( 211, 211, 211, 255 )
 Vaalea harmaa. Lisää...
 
static readonly Color LightGreen = new Color( 144, 238, 144, 255 )
 Vaalea vihreä. Lisää...
 
static readonly Color LightPink = new Color( 255, 182, 193, 255 )
 Vaalea vaaleanpunainen. Lisää...
 
static readonly Color LightYellow = new Color( 255, 255, 224, 255 )
 Vaalea keltainen. Lisää...
 
static readonly Color Lime = new Color( 0, 255, 0, 255 )
 Limetti. Lisää...
 
static readonly Color LimeGreen = new Color( 50, 205, 50, 255 )
 Limetinvihreä. Lisää...
 
static readonly Color Magenta = new Color( 255, 0, 255, 255 )
 Magenta (pinkki) Lisää...
 
static readonly Color Maroon = new Color( 128, 0, 0, 255 )
 Viininpunainen. Lisää...
 
static readonly Color MediumBlue = new Color( 0, 0, 205, 255 )
 Tummahko sininen. Lisää...
 
static readonly Color MediumPurple = new Color( 147, 112, 219, 255 )
 Tummahko purppura. Lisää...
 
static readonly Color MediumTurquoise = new Color( 72, 209, 204, 255 )
 Tummahko turkoosi. Lisää...
 
static readonly Color MediumVioletRed = new Color( 199, 21, 133, 255 )
 Tummahko punavioletti. Lisää...
 
static readonly Color MidnightBlue = new Color( 33, 0, 127, 255 )
 Keskiyön sininen. Lisää...
 
static readonly Color Mint = new Color( 62, 180, 137, 255 )
 Mintunvihreä. Lisää...
 
static readonly Color Navy = new Color( 0, 0, 128, 255 )
 Laivastonsininen. Lisää...
 
static readonly Color Olive = new Color( 127, 106, 0, 255 )
 Oliivi (tumma keltainen). Lisää...
 
static readonly Color Orange = new Color( 255, 106, 0, 255 )
 Oranssi. Lisää...
 
static readonly Color OrangeRed = new Color( 255, 69, 0, 255 )
 Punaoranssi. Lisää...
 
static readonly Color PaintDotNetBlue = new Color( 0, 38, 255, 255 )
 Paint.NETin sininen väri. Lisää...
 
static readonly Color PaintDotNetMagenta = new Color( 255, 0, 220, 255 )
 Paint.NETin magenta (pinkki) väri. Lisää...
 
static readonly Color Pink = new Color( 255, 192, 203, 255 )
 Vaaleanpunainen. Lisää...
 
static readonly Color Purple = new Color( 127, 0, 110, 255 )
 Purppura. Lisää...
 
static readonly Color Red = new Color( 255, 0, 0, 255 )
 Punainen. Lisää...
 
static readonly Color Rose = new Color( 255, 0, 110, 255 )
 Rose (punainen). Lisää...
 
static readonly Color RosePink = new Color( 251, 204, 231, 255 )
 Rose-pinkki. Lisää...
 
static readonly Color Ruby = new Color( 224, 17, 95, 255 )
 Rubiininpunainen. Lisää...
 
static readonly Color Salmon = new Color( 250, 128, 114, 255 )
 Lohenpunainen. Lisää...
 
static readonly Color SeaGreen = new Color( 46, 139, 87, 255 )
 Merensininen. Lisää...
 
static readonly Color Silver = new Color( 192, 192, 192, 255 )
 Hopea. Lisää...
 
static readonly Color SkyBlue = new Color( 135, 206, 235, 255 )
 Taivaansininen. Lisää...
 
static readonly Color SlateBlue = new Color( 106, 90, 205, 255 )
 Saviliuskeensininen. Lisää...
 
static readonly Color SlateGray = new Color( 112, 128, 144, 255 )
 Saviliuskeenharmaa. Lisää...
 
static readonly Color Snow = new Color( 255, 250, 250, 255 )
 Lumenvalkoinen. Lisää...
 
static readonly Color SpringGreen = new Color( 0, 255, 144, 255 )
 Kevään vihreä. Lisää...
 
static readonly Color Teal = new Color( 0, 128, 128, 255 )
 Sinivihreä. Lisää...
 
static readonly Color Transparent = new Color( XnaColor.Transparent )
 Läpinäkyvä väri. Lisää...
 
static readonly Color Turquoise = new Color( 64, 224, 208, 255 )
 Turkoosi. Lisää...
 
static readonly Color Ultramarine = new Color( 18, 10, 143, 255 )
 Ultramariini (tumma sininen). Lisää...
 
static readonly Color Violet = new Color( 178, 0, 255, 255 )
 Violetti. Lisää...
 
static readonly Color Wheat = new Color( 245, 222, 179, 255 )
 Luonnonvalkoinen. Lisää...
 
static readonly Color White = new Color( 255, 255, 255, 255 )
 Valkoinen. Lisää...
 
static readonly Color Yellow = new Color( 255, 255, 0, 255 )
 Keltainen. Lisää...
 
static readonly Color YellowGreen = new Color( 182, 255, 0, 255 )
 Keltavihreä. Lisää...
 

Paketin funktiot

 Color (XnaColor c)
 
XnaColor AsXnaColor ()
 

Paketin staattiset funktiot

static double Distance (XnaColor a, XnaColor b)
 Laskee kahden värin (euklidisen) etäisyyden RGB-väriavaruudessa. Värikomponentit ovat välillä 0-255 joten suurin mahdollinen etäisyys (musta ja valkoinen) on noin 441,68. Lisää...
 

Yksityiskohtainen selite

Väri.

Määrittely tiedoston Color.cs rivillä 12.

Rakentajien & purkajien dokumentaatio

◆ Color() [1/8]

◆ Color() [2/8]

Jypeli.Color.Color ( byte  red,
byte  green,
byte  blue 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-255
greenVihreä värikomponentti välillä 0-255
blueSininen värikomponentti välillä 0-255

Määrittely tiedoston Color.cs rivillä 58.

◆ Color() [3/8]

Jypeli.Color.Color ( byte  red,
byte  green,
byte  blue,
byte  alpha 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-255
greenVihreä värikomponentti välillä 0-255
blueSininen värikomponentti välillä 0-255
alphaLäpinäkymättömyys välillä 0-255

Määrittely tiedoston Color.cs rivillä 70.

Viittaukset Jypeli.Color.AlphaComponent, Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

◆ Color() [4/8]

Jypeli.Color.Color ( int  red,
int  green,
int  blue,
int  alpha 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-255
greenVihreä värikomponentti välillä 0-255
blueSininen värikomponentti välillä 0-255
alphaLäpinäkymättömyys välillä 0-255

Määrittely tiedoston Color.cs rivillä 85.

◆ Color() [5/8]

Jypeli.Color.Color ( int  red,
int  green,
int  blue 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-255
greenVihreä värikomponentti välillä 0-255
blueSininen värikomponentti välillä 0-255

Määrittely tiedoston Color.cs rivillä 96.

◆ Color() [6/8]

Jypeli.Color.Color ( Color  rgb,
byte  alpha 
)

Uusi väri aiemman pohjalta uudella läpinäkyvyydellä

Parametrit
rgbVäri
alphaLäpinäkymättömyys välillä 0-255

Määrittely tiedoston Color.cs rivillä 106.

◆ Color() [7/8]

Jypeli.Color.Color ( double  red,
double  green,
double  blue 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-1.0
greenVihreä värikomponentti välillä 0-1.0
blueSininen värikomponentti välillä 0-1.0

Määrittely tiedoston Color.cs rivillä 117.

◆ Color() [8/8]

Jypeli.Color.Color ( double  red,
double  green,
double  blue,
double  alpha 
)

Uusi väri

Parametrit
redPunainen värikomponentti välillä 0-1.0
greenVihreä värikomponentti välillä 0-1.0
blueSininen värikomponentti välillä 0-1.0
alphaLäpinäkymättömyys välillä 0-1.0

Määrittely tiedoston Color.cs rivillä 129.

Viittaukset Jypeli.Color.AlphaComponent, Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

Jäsenfunktioiden dokumentaatio

◆ AsXnaColor()

◆ Darker()

static Color Jypeli.Color.Darker ( Color  c,
int  howMuch 
)
static

Antaa tummemman värin. Vähentaa jokaista kolmea osaväriä arvon howMuch verran.

Parametrit
cAlkuperäinen väri.
howMuchKuinka paljon tummempi (positiivinen luku).
Palauttaa
Tummempi väri.

Määrittely tiedoston Color.cs rivillä 470.

Viittaukset Jypeli.Color.Color(), Jypeli.Color.AlphaComponent, Jypeli.Color.AsXnaColor(), Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

Viitattu Jypeli.PushButton.Draw().

◆ Distance() [1/2]

static double Jypeli.Color.Distance ( Color  a,
Color  b 
)
static

Laskee kahden värin (euklidisen) etäisyyden RGB-väriavaruudessa. Värikomponentit ovat välillä 0-255 joten suurin mahdollinen etäisyys (musta ja valkoinen) on noin 441,68.

Palauttaa
Etäisyys

Määrittely tiedoston Color.cs rivillä 318.

Viittaukset Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

Viitattu Jypeli.ColorTileMap.ItemEquals().

◆ Distance() [2/2]

static double Jypeli.Color.Distance ( XnaColor  a,
XnaColor  b 
)
staticpackage

Laskee kahden värin (euklidisen) etäisyyden RGB-väriavaruudessa. Värikomponentit ovat välillä 0-255 joten suurin mahdollinen etäisyys (musta ja valkoinen) on noin 441,68.

Palauttaa
Etäisyys

Määrittely tiedoston Color.cs rivillä 332.

◆ Equals()

override bool Jypeli.Color.Equals ( Object  c2)

Määrittely tiedoston Color.cs rivillä 424.

Viittaukset Jypeli.Color.Color().

◆ FromHexCode()

static Color Jypeli.Color.FromHexCode ( string  hexString)
static

◆ FromPaintDotNet()

◆ GetAlpha() [1/2]

static byte Jypeli.Color.GetAlpha ( int  c)
static

Ottaa kokonaisluvusta alpha-arvon

Parametrit
cluku josta otetaan
Palauttaa
Alpha-arvo

Määrittely tiedoston Color.cs rivillä 250.

◆ GetAlpha() [2/2]

static byte Jypeli.Color.GetAlpha ( uint  c)
static

Ottaa kokonaisluvusta alpha-arvon

Parametrit
cluku josta otetaan
Palauttaa
Alpha-arvo

Määrittely tiedoston Color.cs rivillä 239.

◆ GetBlue()

static byte Jypeli.Color.GetBlue ( uint  c)
static

Ottaa kokonaisluvusta sinisen värin

Parametrit
cluku josta otetaan
Palauttaa
sinisen osuus

Määrittely tiedoston Color.cs rivillä 283.

◆ GetGreen()

static byte Jypeli.Color.GetGreen ( uint  c)
static

Ottaa kokonaisluvusta vihreän värin

Parametrit
cluku josta otetaan
Palauttaa
vihreän osuus

Määrittely tiedoston Color.cs rivillä 272.

◆ GetHashCode()

override int Jypeli.Color.GetHashCode ( )

Määrittely tiedoston Color.cs rivillä 419.

Viittaukset Jypeli.Color.ToInt().

◆ GetRed()

static byte Jypeli.Color.GetRed ( uint  c)
static

Ottaa kokonaisluvusta punaisen värin

Parametrit
cluku josta otetaan
Palauttaa
punaisen osuus

Määrittely tiedoston Color.cs rivillä 261.

◆ IntToColor()

static Color Jypeli.Color.IntToColor ( int  c)
static

Tekee kokonaisluvusta värin

Parametrit
cARGB-arvon sisältävä kokonaisluku
Palauttaa

Määrittely tiedoston Color.cs rivillä 294.

Viittaukset Jypeli.Color.Color().

◆ Lerp()

static Color Jypeli.Color.Lerp ( Color  value1,
Color  value2,
double  amount 
)
static

Lineaarinen interpolaatio värien välillä

Parametrit
value1
value2
amount
Palauttaa

Määrittely tiedoston Color.cs rivillä 455.

Viittaukset Jypeli.Color.Color() ja Jypeli.Color.AsXnaColor().

Viitattu Jypeli.RandomGen.NextColor().

◆ Lighter()

static Color Jypeli.Color.Lighter ( Color  c,
int  howMuch 
)
static

Antaa kirkkaamman värin. Kasvattaa jokaista kolmea osaväriä arvon howMuch verran.

Parametrit
cAlkuperäinen väri.
howMuchKuinka paljon vaaleampi.
Palauttaa
Vaaleampi väri.

Määrittely tiedoston Color.cs rivillä 489.

Viittaukset Jypeli.Color.Color(), Jypeli.Color.AlphaComponent, Jypeli.Color.AsXnaColor(), Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

Viitattu Jypeli.PushButton.Draw().

◆ Mix()

static Color Jypeli.Color.Mix ( params Color[]  colors)
static

Sekoittaa kahta tai useampaa väriä.

Parametrit
colorsVärit parametreina.
Palauttaa
Sekoitettu väri

Määrittely tiedoston Color.cs rivillä 505.

Viittaukset Jypeli.Color.Color().

Viitattu Jypeli.RandomGen.NextDarkColor() ja Jypeli.RandomGen.NextLightColor().

◆ operator Color()

static Jypeli.Color.operator Color ( XnaColor  color)
explicitstatic

Määrittely tiedoston Color.cs rivillä 442.

Viittaukset Jypeli.Color.Color().

◆ operator XnaColor()

static Jypeli.Color.operator XnaColor ( Color  color)
explicitstatic

Määrittely tiedoston Color.cs rivillä 437.

Viittaukset Jypeli.Color.AsXnaColor().

◆ operator!=() [1/3]

static bool Jypeli.Color.operator!= ( Color  c1,
Color  c2 
)
static

Määrittely tiedoston Color.cs rivillä 432.

◆ operator!=() [2/3]

static bool Jypeli.Color.operator!= ( Color  c1,
int  i2 
)
static

Määrittely tiedoston Color.cs rivillä 414.

Viittaukset Jypeli.Color.ToUInt().

◆ operator!=() [3/3]

static bool Jypeli.Color.operator!= ( Color  c1,
uint  i2 
)
static

Määrittely tiedoston Color.cs rivillä 404.

Viittaukset Jypeli.Color.ToUInt().

◆ operator==() [1/3]

static bool Jypeli.Color.operator== ( Color  c1,
Color  c2 
)
static

◆ operator==() [2/3]

static bool Jypeli.Color.operator== ( Color  c1,
int  i2 
)
static

Määrittely tiedoston Color.cs rivillä 409.

Viittaukset Jypeli.Color.ToUInt().

◆ operator==() [3/3]

static bool Jypeli.Color.operator== ( Color  c1,
uint  i2 
)
static

Määrittely tiedoston Color.cs rivillä 399.

Viittaukset Jypeli.Color.ToUInt().

◆ PackRGB() [1/2]

static uint Jypeli.Color.PackRGB ( byte  r,
byte  g,
byte  b,
byte  a = 255 
)
static

Pakkaa kolme kokonaislukua väriä vastaavaksi kokonaisluvuksi

Parametrit
rvärin punainen osuus (0-255)
gvärin vihreä osuus (0-255)
bvärin sininen osuus (0-255)
aalpha-arvo (0-255)
Palauttaa

Määrittely tiedoston Color.cs rivillä 150.

◆ PackRGB() [2/2]

static uint Jypeli.Color.PackRGB ( int  r,
int  g,
int  b,
int  a = 255 
)
static

Pakkaa kolme kokonaislukua väriä vastaavaksi kokonaisluvuksi

Parametrit
rvärin punainen osuus (0-255)
gvärin vihreä osuus (0-255)
bvärin sininen osuus (0-255)
aalpha-arvo (0-255)
Palauttaa

Määrittely tiedoston Color.cs rivillä 164.

◆ ToInt()

int Jypeli.Color.ToInt ( )

◆ ToIntRGB()

int Jypeli.Color.ToIntRGB ( )

Muuttaa värin RGB-kokonaisluvuksi

Palauttaa

Määrittely tiedoston Color.cs rivillä 353.

Viittaukset Jypeli.Color.BlueComponent, Jypeli.Color.GreenComponent ja Jypeli.Color.RedComponent.

Viitattu Jypeli.Color.ToString().

◆ ToString() [1/2]

override string Jypeli.Color.ToString ( )

Palautetaan väri heksamerkkijonona

Palauttaa

Määrittely tiedoston Color.cs rivillä 371.

Viittaukset Jypeli.Color.ToString().

Viitattu Jypeli.Color.ToString().

◆ ToString() [2/2]

string Jypeli.Color.ToString ( bool  alpha)

Palautetaan väri heksamerkkijonona.

Parametrit
alphaOtetaanko läpinäkyvyys mukaan (8 merkin heksakoodi)
Palauttaa

Määrittely tiedoston Color.cs rivillä 381.

Viittaukset Jypeli.Color.ToInt() ja Jypeli.Color.ToIntRGB().

◆ ToUInt()

uint Jypeli.Color.ToUInt ( )

Muuttaa värin ARGB-kokonaisluvuksi

Palauttaa

Määrittely tiedoston Color.cs rivillä 362.

Viittaukset Jypeli.Color.ToInt().

Viitattu Jypeli.Color.operator!=() ja Jypeli.Color.operator==().

◆ UIntToColor()

static Color Jypeli.Color.UIntToColor ( uint  c)
static

Tekee kokonaisluvusta värin

Parametrit
cARGB-arvon sisältävä kokonaisluku
Palauttaa

Määrittely tiedoston Color.cs rivillä 306.

Viittaukset Jypeli.Color.Color().

Viitattu Jypeli.Image.SetData().

Jäsendatan dokumentaatio

◆ AlphaComponent

◆ Aqua

readonly Color Jypeli.Color.Aqua = new Color( 0, 255, 255, 255 )
static

Vedensininen.

Määrittely tiedoston Color.cs rivillä 536.

◆ Aquamarine

readonly Color Jypeli.Color.Aquamarine = new Color( 127, 255, 212, 255 )
static

Akvamariini.

Määrittely tiedoston Color.cs rivillä 541.

◆ AshGray

readonly Color Jypeli.Color.AshGray = new Color( 178, 190, 181, 255 )
static

Tuhkanharmaa.

Määrittely tiedoston Color.cs rivillä 531.

◆ Azure

readonly Color Jypeli.Color.Azure = new Color( 0, 148, 255, 255 )
static

Asuurinsininen.

Määrittely tiedoston Color.cs rivillä 546.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Beige

readonly Color Jypeli.Color.Beige = new Color( 245, 245, 220, 255 )
static

Beessi.

Määrittely tiedoston Color.cs rivillä 551.

◆ Black

◆ BloodRed

readonly Color Jypeli.Color.BloodRed = new Color( 127, 0, 55, 255 )
static

Verenpunainen.

Määrittely tiedoston Color.cs rivillä 561.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Blue

readonly Color Jypeli.Color.Blue = new Color( 0, 0, 255, 255 )
static

Sininen.

Määrittely tiedoston Color.cs rivillä 566.

Viitattu Jypeli.Widgets.SplashScreen.SplashScreen() ja Jypeli.Game.InitDebugScreen().

◆ BlueComponent

◆ BlueGray

readonly Color Jypeli.Color.BlueGray = new Color( 102, 153, 204, 255 )
static

Siniharmaa.

Määrittely tiedoston Color.cs rivillä 571.

◆ BrightGreen

readonly Color Jypeli.Color.BrightGreen = new Color( 0, 255, 33, 255 )
static

Kirkkaan vihreä.

Määrittely tiedoston Color.cs rivillä 576.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Brown

readonly Color Jypeli.Color.Brown = new Color( 127, 51, 0, 255 )
static

Ruskea.

Määrittely tiedoston Color.cs rivillä 581.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ BrownGreen

readonly Color Jypeli.Color.BrownGreen = new Color( 91, 127, 0, 255 )
static

Ruskeanvihreä.

Määrittely tiedoston Color.cs rivillä 586.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Charcoal

readonly Color Jypeli.Color.Charcoal = new Color( 54, 69, 79, 255 )
static

Hiilenmusta.

Määrittely tiedoston Color.cs rivillä 601.

◆ Crimson

readonly Color Jypeli.Color.Crimson = new Color( 220, 20, 60, 255 )
static

Karmiininpunainen.

Määrittely tiedoston Color.cs rivillä 591.

◆ Cyan

readonly Color Jypeli.Color.Cyan = new Color( 0, 255, 255, 255 )
static

Syaani.

Määrittely tiedoston Color.cs rivillä 596.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkAzure

readonly Color Jypeli.Color.DarkAzure = new Color( 0, 74, 127, 255 )
static

Tumma asuuri.

Määrittely tiedoston Color.cs rivillä 606.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkBlue

readonly Color Jypeli.Color.DarkBlue = new Color( 0, 19, 127, 255 )
static

Tumma sininen.

Määrittely tiedoston Color.cs rivillä 616.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkBrown

readonly Color Jypeli.Color.DarkBrown = new Color( 92, 64, 51, 255 )
static

Tumma ruskea.

Määrittely tiedoston Color.cs rivillä 611.

◆ DarkCyan

readonly Color Jypeli.Color.DarkCyan = new Color( 0, 127, 127, 255 )
static

Tumma syaani.

Määrittely tiedoston Color.cs rivillä 621.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkForestGreen

readonly Color Jypeli.Color.DarkForestGreen = new Color( 0, 127, 14 )
static

Tumma metsänvihreä.

Määrittely tiedoston Color.cs rivillä 626.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkGray

readonly Color Jypeli.Color.DarkGray = new Color( 64, 64, 64, 255 )
static

Tumma harmaa.

Määrittely tiedoston Color.cs rivillä 631.

Viitattu Jypeli.Widgets.Slider.Slider() ja Jypeli.Color.FromPaintDotNet().

◆ DarkGreen

readonly Color Jypeli.Color.DarkGreen = new Color( 0, 100, 0, 255 )
static

Tumma vihreä.

Määrittely tiedoston Color.cs rivillä 636.

◆ DarkJungleGreen

readonly Color Jypeli.Color.DarkJungleGreen = new Color( 0, 127, 70, 255 )
static

Tumma viidakonvihreä.

Määrittely tiedoston Color.cs rivillä 641.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkMagenta

readonly Color Jypeli.Color.DarkMagenta = Color.Purple
static

Tumma magenta (purppura).

Määrittely tiedoston Color.cs rivillä 861.

◆ DarkOrange

readonly Color Jypeli.Color.DarkOrange = Color.Brown
static

Tumma oranssi / ruskea.

Määrittely tiedoston Color.cs rivillä 646.

◆ DarkRed

readonly Color Jypeli.Color.DarkRed = new Color( 127, 0, 0, 255 )
static

Tumma punainen.

Määrittely tiedoston Color.cs rivillä 651.

Viitattu Jypeli.YesNoWindow.YesNoWindow() ja Jypeli.Color.FromPaintDotNet().

◆ DarkTurquoise

readonly Color Jypeli.Color.DarkTurquoise = new Color( 0, 206, 209, 255 )
static

Tumma turkoosi.

Määrittely tiedoston Color.cs rivillä 656.

◆ DarkViolet

readonly Color Jypeli.Color.DarkViolet = new Color( 87, 0, 127, 255 )
static

Tumma violetti.

Määrittely tiedoston Color.cs rivillä 661.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ DarkYellow

readonly Color Jypeli.Color.DarkYellow = Color.Olive
static

Tumma keltainen (oliivi).

Määrittely tiedoston Color.cs rivillä 666.

◆ DarkYellowGreen

readonly Color Jypeli.Color.DarkYellowGreen = Color.BrownGreen
static

Tumma keltavihreä (ruskeanvihreä).

Määrittely tiedoston Color.cs rivillä 671.

◆ Emerald

readonly Color Jypeli.Color.Emerald = new Color( 80, 200, 120, 255 )
static

Smaragdinvihreä.

Määrittely tiedoston Color.cs rivillä 676.

◆ ForestGreen

readonly Color Jypeli.Color.ForestGreen = new Color( 38, 127, 0 )
static

◆ Fuchsia

readonly Color Jypeli.Color.Fuchsia = new Color( 255, 0, 255, 255 )
static

Fuksia (pinkki)

Määrittely tiedoston Color.cs rivillä 686.

◆ Gold

readonly Color Jypeli.Color.Gold = new Color( 255, 216, 0, 255 )
static

Kulta.

Määrittely tiedoston Color.cs rivillä 691.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Gray

◆ Green

readonly Color Jypeli.Color.Green = new Color( 0, 128, 0, 255 )
static

◆ GreenComponent

◆ GreenYellow

readonly Color Jypeli.Color.GreenYellow = new Color( 173, 255, 47, 255 )
static

Keltavihreä.

Määrittely tiedoston Color.cs rivillä 706.

◆ HanPurple

readonly Color Jypeli.Color.HanPurple = new Color( 72, 0, 255, 255 )
static

Sinipurppurainen väri Han-dynastian ajoilta.

Määrittely tiedoston Color.cs rivillä 711.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Harlequin

readonly Color Jypeli.Color.Harlequin = new Color( 76, 255, 0, 255 )
static

Harlekiini (hieman keltaisella sävytetty kirkas vihreä).

Määrittely tiedoston Color.cs rivillä 716.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ HotPink

readonly Color Jypeli.Color.HotPink = new Color( 255, 105, 180, 255 )
static

Pinkki.

Määrittely tiedoston Color.cs rivillä 721.

Viitattu Jypeli.Game.InitDebugScreen().

◆ Ivory

readonly Color Jypeli.Color.Ivory = new Color( 255, 255, 240, 255 )
static

Norsunluu.

Määrittely tiedoston Color.cs rivillä 726.

◆ JungleGreen

readonly Color Jypeli.Color.JungleGreen = new Color( 41, 171, 135, 255 )
static

Viidakonvihreä.

Määrittely tiedoston Color.cs rivillä 731.

◆ Lavender

readonly Color Jypeli.Color.Lavender = new Color( 220, 208, 255, 255 )
static

Laventeli.

Määrittely tiedoston Color.cs rivillä 736.

◆ LightBlue

readonly Color Jypeli.Color.LightBlue = new Color( 173, 216, 230, 255 )
static

Vaalea sininen.

Määrittely tiedoston Color.cs rivillä 741.

Viitattu Jypeli.Level.Level().

◆ LightCyan

readonly Color Jypeli.Color.LightCyan = new Color( 224, 255, 255, 255 )
static

Vaalea syaani.

Määrittely tiedoston Color.cs rivillä 746.

◆ LightGray

readonly Color Jypeli.Color.LightGray = new Color( 211, 211, 211, 255 )
static

Vaalea harmaa.

Määrittely tiedoston Color.cs rivillä 751.

Viitattu Jypeli.Game.addMessageDisplay().

◆ LightGreen

readonly Color Jypeli.Color.LightGreen = new Color( 144, 238, 144, 255 )
static

Vaalea vihreä.

Määrittely tiedoston Color.cs rivillä 756.

◆ LightPink

readonly Color Jypeli.Color.LightPink = new Color( 255, 182, 193, 255 )
static

Vaalea vaaleanpunainen.

Määrittely tiedoston Color.cs rivillä 761.

◆ LightYellow

readonly Color Jypeli.Color.LightYellow = new Color( 255, 255, 224, 255 )
static

Vaalea keltainen.

Määrittely tiedoston Color.cs rivillä 766.

◆ Lime

readonly Color Jypeli.Color.Lime = new Color( 0, 255, 0, 255 )
static

Limetti.

Määrittely tiedoston Color.cs rivillä 771.

◆ LimeGreen

readonly Color Jypeli.Color.LimeGreen = new Color( 50, 205, 50, 255 )
static

Limetinvihreä.

Määrittely tiedoston Color.cs rivillä 776.

◆ Magenta

readonly Color Jypeli.Color.Magenta = new Color( 255, 0, 255, 255 )
static

Magenta (pinkki)

Määrittely tiedoston Color.cs rivillä 781.

◆ Maroon

readonly Color Jypeli.Color.Maroon = new Color( 128, 0, 0, 255 )
static

Viininpunainen.

Määrittely tiedoston Color.cs rivillä 786.

◆ MediumBlue

readonly Color Jypeli.Color.MediumBlue = new Color( 0, 0, 205, 255 )
static

Tummahko sininen.

Määrittely tiedoston Color.cs rivillä 791.

◆ MediumPurple

readonly Color Jypeli.Color.MediumPurple = new Color( 147, 112, 219, 255 )
static

Tummahko purppura.

Määrittely tiedoston Color.cs rivillä 796.

◆ MediumTurquoise

readonly Color Jypeli.Color.MediumTurquoise = new Color( 72, 209, 204, 255 )
static

Tummahko turkoosi.

Määrittely tiedoston Color.cs rivillä 801.

◆ MediumVioletRed

readonly Color Jypeli.Color.MediumVioletRed = new Color( 199, 21, 133, 255 )
static

Tummahko punavioletti.

Määrittely tiedoston Color.cs rivillä 806.

◆ MidnightBlue

readonly Color Jypeli.Color.MidnightBlue = new Color( 33, 0, 127, 255 )
static

Keskiyön sininen.

Määrittely tiedoston Color.cs rivillä 811.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Mint

readonly Color Jypeli.Color.Mint = new Color( 62, 180, 137, 255 )
static

Mintunvihreä.

Määrittely tiedoston Color.cs rivillä 816.

◆ Navy

readonly Color Jypeli.Color.Navy = new Color( 0, 0, 128, 255 )
static

Laivastonsininen.

Määrittely tiedoston Color.cs rivillä 821.

◆ Olive

readonly Color Jypeli.Color.Olive = new Color( 127, 106, 0, 255 )
static

Oliivi (tumma keltainen).

Määrittely tiedoston Color.cs rivillä 826.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Orange

readonly Color Jypeli.Color.Orange = new Color( 255, 106, 0, 255 )
static

Oranssi.

Määrittely tiedoston Color.cs rivillä 831.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ OrangeRed

readonly Color Jypeli.Color.OrangeRed = new Color( 255, 69, 0, 255 )
static

Punaoranssi.

Määrittely tiedoston Color.cs rivillä 836.

◆ PaintDotNetBlue

readonly Color Jypeli.Color.PaintDotNetBlue = new Color( 0, 38, 255, 255 )
static

Paint.NETin sininen väri.

Määrittely tiedoston Color.cs rivillä 841.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ PaintDotNetMagenta

readonly Color Jypeli.Color.PaintDotNetMagenta = new Color( 255, 0, 220, 255 )
static

Paint.NETin magenta (pinkki) väri.

Määrittely tiedoston Color.cs rivillä 846.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Pink

readonly Color Jypeli.Color.Pink = new Color( 255, 192, 203, 255 )
static

Vaaleanpunainen.

Määrittely tiedoston Color.cs rivillä 851.

◆ Purple

readonly Color Jypeli.Color.Purple = new Color( 127, 0, 110, 255 )
static

Purppura.

Määrittely tiedoston Color.cs rivillä 856.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Red

◆ RedComponent

◆ Rose

readonly Color Jypeli.Color.Rose = new Color( 255, 0, 110, 255 )
static

Rose (punainen).

Määrittely tiedoston Color.cs rivillä 871.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ RosePink

readonly Color Jypeli.Color.RosePink = new Color( 251, 204, 231, 255 )
static

Rose-pinkki.

Määrittely tiedoston Color.cs rivillä 876.

◆ Ruby

readonly Color Jypeli.Color.Ruby = new Color( 224, 17, 95, 255 )
static

Rubiininpunainen.

Määrittely tiedoston Color.cs rivillä 881.

◆ Salmon

readonly Color Jypeli.Color.Salmon = new Color( 250, 128, 114, 255 )
static

Lohenpunainen.

Määrittely tiedoston Color.cs rivillä 886.

◆ SeaGreen

readonly Color Jypeli.Color.SeaGreen = new Color( 46, 139, 87, 255 )
static

Merensininen.

Määrittely tiedoston Color.cs rivillä 891.

◆ Silver

readonly Color Jypeli.Color.Silver = new Color( 192, 192, 192, 255 )
static

Hopea.

Määrittely tiedoston Color.cs rivillä 896.

◆ SkyBlue

readonly Color Jypeli.Color.SkyBlue = new Color( 135, 206, 235, 255 )
static

Taivaansininen.

Määrittely tiedoston Color.cs rivillä 901.

◆ SlateBlue

readonly Color Jypeli.Color.SlateBlue = new Color( 106, 90, 205, 255 )
static

Saviliuskeensininen.

Määrittely tiedoston Color.cs rivillä 906.

◆ SlateGray

readonly Color Jypeli.Color.SlateGray = new Color( 112, 128, 144, 255 )
static

Saviliuskeenharmaa.

Määrittely tiedoston Color.cs rivillä 911.

◆ Snow

readonly Color Jypeli.Color.Snow = new Color( 255, 250, 250, 255 )
static

Lumenvalkoinen.

Määrittely tiedoston Color.cs rivillä 916.

◆ SpringGreen

readonly Color Jypeli.Color.SpringGreen = new Color( 0, 255, 144, 255 )
static

Kevään vihreä.

Määrittely tiedoston Color.cs rivillä 921.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Teal

readonly Color Jypeli.Color.Teal = new Color( 0, 128, 128, 255 )
static

Sinivihreä.

Määrittely tiedoston Color.cs rivillä 926.

◆ Transparent

◆ Turquoise

readonly Color Jypeli.Color.Turquoise = new Color( 64, 224, 208, 255 )
static

Turkoosi.

Määrittely tiedoston Color.cs rivillä 936.

◆ Ultramarine

readonly Color Jypeli.Color.Ultramarine = new Color( 18, 10, 143, 255 )
static

Ultramariini (tumma sininen).

Määrittely tiedoston Color.cs rivillä 941.

◆ Violet

readonly Color Jypeli.Color.Violet = new Color( 178, 0, 255, 255 )
static

Violetti.

Määrittely tiedoston Color.cs rivillä 946.

Viitattu Jypeli.Color.FromPaintDotNet().

◆ Wheat

readonly Color Jypeli.Color.Wheat = new Color( 245, 222, 179, 255 )
static

Luonnonvalkoinen.

Määrittely tiedoston Color.cs rivillä 951.

◆ White

◆ Yellow

readonly Color Jypeli.Color.Yellow = new Color( 255, 255, 0, 255 )
static

Keltainen.

Määrittely tiedoston Color.cs rivillä 961.

Viitattu PlatformCharacter.GetStateColor().

◆ YellowGreen

readonly Color Jypeli.Color.YellowGreen = new Color( 182, 255, 0, 255 )
static

Keltavihreä.

Määrittely tiedoston Color.cs rivillä 966.

Viitattu Jypeli.Color.FromPaintDotNet().


Dokumentaatio tälle tietueelle luotiin seuraavasta tiedostosta: