Pset Command

Purpose

Sets a graphic point.

Syntax

Pset x, y [, color]

Pset [Step] (x, y) [, color]

x,y:Single exp
color:iexp

Description

Pset x, y, color sets a graphic point at the coordinates x and y in color color. Pset can be used as an alternative to:

Color RGB(r, g, b) : Plot x, y

however, it will not change the current color.

Pset x, y or Pset(x, y) sets a point in the current foreground color.

Pset Step (dx, dy) sets a point in the current foreground color at a distance of dx, dy from the current position.

Pset Step (dx, dy), color sets a point in the color at a distance of dx, dy from the current position.

Example

OpenW # 1

Do

Pset Rand(_X), Rand(_Y), Rand(_C) - 1

Until MouseK && 2

CloseW # 1

Fills the screen slowly with many multicolored points.

Remarks

In Windows the last point of a line isn't drawn. The following fixes this:

Line x0, y0, x1, y1 : Pset(x1, y1)

See Also

Color, Plot, Draw, Line, SetDraw, Point, PTst

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