kytschBASIC

Put down that phone!
Please view me on real computer.

COPYSHAPE
CURRENT SHAPE, NEW SHAPE
Requires arcade library

The ability to copy a shape.

Example

INCLUDE arcade

SCREEN

	RGB 0,0,0

	BITMAP 0,0,640,480

		REM Create a circle

		RGB 255,0,0

		CIRCLE 280,220,40



		REM Copy the freshly drawn circle and create a new one

		COPYSHAPE 0,1



		REM Move the copied circle's X and Y

		MOVESHAPE 360,300



		REM Draw the newly copied shape

		DRAWSHAPE

	END BITMAP

END SCREEN

Output

1

Parameters

Parameter Type Description
0 integer The current shape
1 integer The new shape

See also