kytschBASIC

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

SPIN
ID, SPEED (default 500ms), DIRECTION (default clockwise)
Requires arcade library

This will create a spin animation on a given element.

Direction can be 'clockwise' or 'anti-clockwise'.

Example

INCLUDE arcade

SCREEN "show_me"

	RGB 0,0,0

	BITMAP 0,0,640,480,"spin-me"

		RGB 255,0,0



		LINE 120,120,120,200

		LINE 180,120,180,200

		LINE 120,160,180,160



		LINE 200,160,200,165

		LINE 200,170,200,200



		LINE 230,120,230,180

		CIRCLE 230,195,10



		CIRCLE 400,180,220



		CIRCLE 425,150,40

		CIRCLE 375,150,40



		ARC 400,160,25,150,155

	END BITMAP

END SCREEN

ANIMATION

	SLEEP 1000

	SPIN "spin-me", "3000", "anti-clockwise"

END ANIMATION

Output

See also