cColor


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cColor class

Encapsulates a RGB color, e.g. for armor.


Constants

NameValueNotes
COLOR_LIMIT 256 The upper bound (exclusive) for a color component
COLOR_MAX 255 The maximum value for a color component
COLOR_MIN 0 The minimum value for a color component
COLOR_NONE 4294967295 A constant denoting the color is invalid (note: use IsValid)

Functions

NameParametersReturn valueNotes
() (constructor)
cColor
Creates an uninitialized cColor. Each component must be between 0 and 255, inclusive.
() (constructor)
Rednumber
Greennumber
Bluenumber
cColor
Creates the specified cColor. All components must be between 0 and 255, inclusive.
Clear Resets the color to uninitialized.
GetBlue
Bluenumber
Returns the color's blue component.
GetColor
Rednumber
Greennumber
Bluenumber
Returns the color's red, green, and blue components, respectively.
GetGreen
Greennumber
Returns the color's green component.
GetRed
Rednumber
Returns the color's red component.
IsValid
boolean
True if the color is valid, false if the color has not been set yet.
SetBlue
Bluenumber
Sets the color's blue component. Must be between 0 and 255, inclusive.
SetColor
Rednumber
Greennumber
Bluenumber
Sets the color's red, green, and blue components. Values range from 0 to 255.
SetGreen
Greennumber
Sets the color's green component. Must be between 0 and 255, inclusive.
SetRed
Rednumber
Sets the color's red component. Must be between 0 and 255, inclusive.
Generated on 2017-07-26 13:00:19, Build ID Unknown, Commit approx: e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf