CALL SPAINT
This page was last modified 13:46, 17 July 2021 by Mars2000you.

This instruction is available in Arabic Basic, EddyII Basic and Expander Basic.

Contents

CALL SPAINT in Arabic Basic

Effect

Fills the zone of a drawing in screen 2.

Contrary to PAINT, the computer will not paint all the screen when the border color of the zone is different from the color to be used.

Syntax

CALL SPAINT (<X>,<Y>),<FillingColor>

Note: Parameters can not end with a comma alone.

Parameters

<X> is coordinate X of the starting point to paint a zone of the drawing (0-255)

<Y> is coordinate Y of the starting point to paint a zone of the drawing (0-191)

Coordinates cannot be omitted.

<FillingColor> is the color to be used for painting a zone of the drawing. If <FillingColor> is not specified the current foreground color is used.

Example

10 COLOR 15,4,7:SCREEN 2
20 LINE(50,50)-(200,160),15,B
30 CIRCLE(100,100),40,15
40 CIRCLE(150,100),40,8
50 _SPAINT(80,100),3
60 GOTO 60

Related to

CALL QPAINT, PAINT

Compatibility

Arabic BASIC 1.0 and higher (only Sakhr MSX1/MSX2)


CALL SPAINT in EddyII Basic

Effect

Fills the zone of a drawing in non-Bitmap graphic screen (screens 2 to 4) with the colors specified with CALL SCOLOR.

The computer will switch from one color to the other one at the end of a line inside the zone to be colored. Contrary to PAINT, it will not paint all the screen when the border color of this zone is different from the colors specified with CALL SCOLOR.

Syntax

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

Parameters

<X> is coordinate X of the starting point to paint a zone of the drawing (0-255)

<Y> is coordinate Y of the starting point to paint a zone of the drawing (0-191)

Coordinates cannot be omitted.

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

Example

10 COLOR 15,4,7:SCREEN 2
20 _SCOLOR (13,10)
30 CIRCLE(100,100),70,,,,1.4
40 _SPAINT((100,100))
50 GOTO 50

Related to

COLOR, CALL SCOLOR, PAINT

Compatibility

EddyII BASIC


CALL SPAINT in Expander Basic

Effect

Fills the zone of a drawing in non-Bitmap graphic screen (screens 2 to 4) with the last color specified before CALL SPAINT.

Contrary to PAINT, the computer will not paint all the screen when the border color of the zone is different from the color to be used.

Syntax

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

Parameters

<X> is coordinate X of the starting point to paint a zone of the drawing (0-255)

<Y> is coordinate Y of the starting point to paint a zone of the drawing (0-191)

Coordinates cannot be omitted.

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

Example

10 COLOR 15,4,7:SCREEN 2
20 LINE(50,50)-(200,160),15,B
30 CIRCLE(100,100),40,15
40 CIRCLE(150,100),40,8
50 COLOR 3: _SPAINT((80,100))
60 GOTO 60

Related to

COLOR, PAINT

Compatibility

Expander BASIC