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

CircleC

Function number: 33

Draws a circle centered at the specified X, Y position using the specified radius, color.

Register entry values

AX = EE21
SI = Starting X position
DI = Starting Y position
BX = Radius
DX = Color of circle

Register exit values

None

Example

MOV     AX,0EE21H       ;Draw circle with color function
MOV SI,160 ;X origin
MOV DI,10 ;Y origin
MOV BX,50 ;Radius
MOV DX,15 ;Color of circle
INT 10H ;Call GRAFIX

Comments

See the 'SetAspect' function in chapter 2 for a detailed explanation of the aspect ratio.