CALL TRIMMING
This page was last modified 16:10, 17 May 2020 by Mars2000you.

Contents

Effect

Copies part of a graphic screen supported by Eddy II (2 to 4).

It's similar to the COPY graphic instruction on Bitmap screen modes (5 to 8, 10 to 12).

Syntax

CALL TRIMMING ((<XS>,<YS>)]-STEP(<XS2>,<YS2>)-(<XD>,<YD>))

Parameters

<XS> and <YS> are upper-left coordinates of transfer source (X=0-255, Y=0-191).

<XS2> and <YS2> are lower-right coordinates of transfer source (X2=0-255, Y2=0-191).

STEP parameter changes X2 and Y2 coordinates to relative coordinates (and therefore allows the use of negative values).

<XD> and <YD> are upper-left coordinates of transfer destination (X=0-255, Y=0-191).

Example

10 COLOR 15,4,7:SCREEN 2
20 _SCOLOR (13,10)
30 CIRCLE(100,100),70,,,,1.4
40 _SPAINT((100,100))
50 _TRIMMING((40,40)-(95,95)-(160,20))
60 _TRIMMING((80,40)-STEP(-50,60)-(160,90))
70 GOTO 70

Related to

COPY, SCREEN

Compatibility

EddyII BASIC