ExtPut(X, Y, Image[Index], PutAction)
Transfers a graphics image stored with ExtGet starting at X, Y using the specified action.
Action is 1 of 5 options described as follows:
1 = PRESET - Produces a numeric opposite of the color stored in the array:
| Array Color | Screen Color |
|---|---|
| 00 | 15 |
| 01 | 14 |
| 02 | 13 |
| 03 | 12 |
| 04 | 11 |
| 05 | 10 |
| 06 | 09 |
| 07 | 08 |
| 08 | 07 |
| 09 | 06 |
| 10 | 05 |
| 11 | 04 |
| 12 | 03 |
| 13 | 02 |
| 14 | 01 |
| 15 | 00 |
2 = PSET - Transfers the image exactly as it was stored.
3 = AND - Does a logical AND between the point on the screen and the color in the array.
4 = OR - Does a logical OR between the point on the screen and the color in the array.
5 = XOR - Does a logical XOR between the point on the screen and the color in the array. When PUT against a background twice, the background is restored. This allows animation to take place. To perform animation do the following:
- PUT the image on the screen
- Calculate the next X, Y position
- PUT the image at the previous X, Y position
- Repeat Step 1
Parameters
X - Horizontal position to transfer image
Y - Vertical position to transfer image
Image[Index] - Integer array holding graphic image starting at the specified index
PutAction - Action to use when transferring image