If you use the following figure:
and you call the function using the following values:
Parameter
Value
uMaxRad
8
nCyanAngle
108
nMagentaAngle
163
nYellowAngle
90
nBlackAngle
45
The following figure results: