Jia` Images
Each image STATE has a list of nine images, one per piece/pad pair:
| Piece:
| (none)
| RED
| BLACK
| on_Grass
| eg
| rg
| bg
| on_Red home
| er
| rr
| br
| on_Black home
| eb
| rb
| bb
| | | |
| Piece:
| (none)
| RED
| BLACK
| -
| (none)
| RED
| BLACK
| on_Grass
|
|
|
|
|
|
|
| on_Red home
|
|
|
|
|
|
|
| on_Black home
|
|
|
|
|
|
|
| | | |
Based on events, squares may display different "states".
| CODE | STATE | Appearance | Meaning | ACTION:
|
|---|
| | Normal | Normal | Your turn. |
|
|---|
| r | Rise-up | Piece rises up | Anticipating touch. | onMouseOver (my piece)
|
|---|
| a | Light-up | Background lighted. | Piece was touched; waiting for move. | onClick (my piece)
|
|---|
| a | Light-up | Empty square lights up. | Legal move. | onMouseOver (empty square)
|
|---|
| s | Landing | Piece appears & settles down. | Completed | onClick (legal move)
|
|---|
| d | Dark | Dark | (Not your turn.) | (wait)
|
|---|