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

Method plot

bwapi/BWAPI/Source/BW/Bitmap.cpp:256–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 void Bitmap::plot(int x, int y, u8 color)
257 {
258 if ( x < 0 || y < 0 || x >= this->width() || y >= this->height() )
259 return;
260 this->plotX(x, y, color);
261 }
262 void Bitmap::plotX(int x, int y, u8 col)
263 {
264 this->data[ x + y*this->width() ] = col;

Callers 3

BlitGrpFrameMethod · 0.95
drawLineMethod · 0.95
bwPlotFunction · 0.80

Calls 3

widthMethod · 0.95
heightMethod · 0.95
plotXMethod · 0.95

Tested by

no test coverage detected