cColor


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
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
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
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
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
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 by APIDump on 2022-10-28 17:00:47, Build ID Unknown, Commit approx: 21ec3ebe26bff24b5fc6d96f86a441c9c9628247