MCPcopy Create free account
hub / github.com/apache/cloudstack / _startTile

Method _startTile

systemvm/agent/noVNC/core/decoders/hextile.js:135–152  ·  view source on GitHub ↗
(x, y, width, height, color)

Source from the content-addressed store, hash-verified

133
134 // start updating a tile
135 _startTile(x, y, width, height, color) {
136 this._tileX = x;
137 this._tileY = y;
138 this._tileW = width;
139 this._tileH = height;
140
141 const red = color[0];
142 const green = color[1];
143 const blue = color[2];
144
145 const data = this._tileBuffer;
146 for (let i = 0; i < width * height * 4; i += 4) {
147 data[i] = red;
148 data[i + 1] = green;
149 data[i + 2] = blue;
150 data[i + 3] = 255;
151 }
152 }
153
154 // update sub-rectangle of the current tile
155 _subTile(x, y, w, h, color) {

Callers 1

decodeRectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected