Plot Command

Purpose

Draws a point on the screen.

Syntax

Plot x, y

x, y:floating-point expression

Description

Plot x, y draws a point with coordinates x, y on the screen. The coordinate system depends on the ScaleMode setting.

Example

OpenW # 1

Local mk%, mx%, my%

DefMouse 2

Do

Mouse mx%, my%, mk%

If mk% & 1

Color Rand (_C) - 1

Plot mx%, my%

EndIf

Until mk% %& 2

CloseW # 1

An infinite loop which draws a point at the current mouse position after each mouse button click.

See Also

Draw, Line, PolyLine, Preset, Pset, QBDraw, SetDraw

{Created by Sjouke Hamstra; Last updated: 21/10/2014 by James Gaite}