VISELLIPSE (Statement)


Draw an ellipse on the screen.


VISELLIPSE <X coordinate >, <Y coordinate >, <width>, <height> [, <mode>]


<X coordinate >
Specifies the X coordinate of the ellipse to be drawn.
<Y coordinate >
Specifies the Y coordinate of the ellipse to be drawn.
<width>
Specifies the width of the ellipse to be drawn.
<height>
Specifies the height of the ellipse to be drawn.
<mode>
Specifies the mode of drawing.
0: Draws only an outline of an ellipse.
1: Draws a whole filled ellipse.
If ignored, 0 will be the default setting.
  • The values of the X and Y coordinates and the radius are not checked. Even if they are out of the permissible drawing range, no error will result.
  • The object screen is the screen set with VISSCREEN.
  • The brightness value for drawing is the same as the brightness designated with VISBRIGHT.
  • For this instruction, a µVision board (option) is required.



VISPLNOUT 0
'Display storage memory 0 (processing screen)
VISSCREEN 0,0,1
'Instantaneously draw on processing screen 0
VISCLS 0
'Clear the screen
VISBRIGHT 255
'Set the brightness value for drawing
VISELLIPSE 255,255,100,50
'Draw an ellipse with a width of 50 and a height of 100
VISELLIPSE 255,255,50,100,1
'Draw a coated ellipse with a width of 50
'and a height 100


Top