Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 3

Paint

Function number: 16

Paints irregular shapes starting at the specified X, Y position using the specified fill color stopping at the specified boundary color.

Register entry values

AX = EE10
SI = Starting X position
DI = Starting Y position
BX = Fill color
CX = Boundary color

Register exit values

None

Example

MOV     AX,0EE10H       ;Paint function
MOV SI,100 ;X starting position
MOV DI,100 ;Y starting position
MOV BX,9 ;Fill color
MOV CX,14 ;Boundary color
INT 10H ;Call GRAFIX

Comments

See the 'ExtPaint' function in chapter 2 for a detailed explanation.