Get the value of a pixel of the character. @param row The row, in the range [0,8). @param col The column, in the range [0,8). @return True if the pixel is solid, false if transparent.
(int row, int col)
| 123 | * @return True if the pixel is solid, false if transparent. |
| 124 | */ |
| 125 | public boolean get(int row, int col) { |
| 126 | if (row < 0 || col < 0 || row >= height || col >= width) return false; |
| 127 | return data[row * width + col]; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Get the width of the character sprite. |