SETBITINDEX

Synopsis
SETBITINDEX index
Description

Sets the current bitmap cut buffer according to index. The index input must be a number from 0 to 1023. Its purpose is to allow multiple images to be stored in memory ready for quick pasting when doing animation.

The index of 0 is the default and also has the behavior of using the clipboard as the cut buffer. That is if you "cut" an image in an application like Microsoft Paint, then you can paste it directly in FMSLogo. The reverse is also true, if "cut" an image in FMSLogo it is available applications like Microsoft Paint.

Use BITINDEX to obtain the current setting.

Example
SETBITINDEX 0
REPEAT 3 [FORWARD 50 RIGHT 120]
BITCUT 100 100

CLEARSCREEN
SETBITINDEX 1
REPEAT 4 [FORWARD 50 RIGHT 90]
BITCUT 100 100

CLEARSCREEN
SETBITMODE 3
PENUP
HIDETURTLE
REPEAT 72 [FORWARD 50 BITPASTE BACK 50 RIGHT 5]
SETBITINDEX 0
REPEAT 72 [FORWARD 100 BITPASTE BACK 100 RIGHT 5]
PENDOWN

SourceForge.net Logo