MCPcopy Create free account
hub / github.com/bwapi/bwapi / red

Method red

bwapi/BWAPILIB/Source/Color.cpp:120–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 : Type( getRGBIndex(red, green, blue) )
119 {}
120 int Color::red() const
121 {
122 return this->isValid() ? defaultPalette[this->getID()].rgbRed : 0;
123 }
124 int Color::green() const
125 {
126 return this->isValid() ? defaultPalette[this->getID()].rgbGreen : 0;

Callers 1

writeColorInfoFunction · 0.80

Calls 2

isValidMethod · 0.45
getIDMethod · 0.45

Tested by

no test coverage detected