CALL SPSET
This page was last modified 23:25, 31 May 2021 by Mars2000you.

This instruction is available in EddyII Basic and Expander Basic.

Contents

CALL SPSET in EddyII Basic

Effect

Puts a point of specified color on a graphic screen supported by Eddy II (2 to 4) while using the drawing style specified with CALL LSTYLE. If not specified the current plot color is chosen.

Syntax

CALL SPSET (STEP(<X>,<Y>),<Color>)

Note: Parameters can not end with a comma alone.

Parameters

<X> is coordinate X of the point to put on the screen (0-255)

<Y> is coordinate Y of the point to put on the screen (0-191)

If STEP is used before these coordinates, they are interpreted relative to the current cursor position. In this case the values can also be negative.

<Color> is the color to be used = 0 to 15. If <Color> is not specified the current foreground color is used.

Example

10 COLOR 15,1,7: SCREEN 2
20 _LSTYLE(0)
30 _SPSET((10,10))
40 FOR I=1 TO 3
50 _LSTYLE(I)
60 _SPSET((10+20*I,10),6+I)
70 NEXT I
80 FOR I=4 TO 7
90 _LYSTLE(I)
100 _SPSET(STEP(-10,40),6+I)
110 NEXT I
120 GOTO 120

Related to

CALL LSTYLE, PSET

Compatibility

EddyII BASIC


CALL SPSET in Expander BASIC

Effect

Puts a point of specified color on a graphic screen supported by Lightpen Graphics (2 to 4) while using the last color specified before CALL SPSET.

When two lines overlap, the result will be different from the "normal" PSET, because the pixels affected by the color of the point are not the same.

Syntax

CALL SPSET (STEP(<X>,<Y>))

Parameters

<X> is coordinate X of the point to put on the screen (0-255)

<Y> is coordinate Y of the point to put on the screen (0-191)

If STEP is used before these coordinates, they are interpreted relative to the current cursor position. In this case the values can also be negative.

Example

10 COLOR 8,5,7: SCREEN 2
20 LINE(41,0)-(47,191),15,BF
30 PSET(44,70),1
40 _SPSET((44,180))
50 COLOR 15
60 FOR I=1 TO 13
70 _SPSET(STEP(2*I,-2*I))
80 NEXT I
90 GOTO 90

Related to

PSET

Compatibility

Expander BASIC