show other player hands
This commit is contained in:
parent
ca387b53ec
commit
36e5f8437d
4 changed files with 359 additions and 316 deletions
|
|
@ -20,6 +20,14 @@ export default class CanvasAdapter {
|
|||
this._data = this._imageData.data
|
||||
this.apply()
|
||||
}
|
||||
clearRect(rect) {
|
||||
for (let x = rect.x0; x< rect.x1; x++) {
|
||||
for (let y = rect.y0; y< rect.y1; y++) {
|
||||
this.putPix(x, y, [0,0,0,0])
|
||||
}
|
||||
}
|
||||
this.apply()
|
||||
}
|
||||
|
||||
getPix(x, y, out) {
|
||||
if (x < 0 || y < 0 || x >= this._w || y >= this._h) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue