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
; Set a triangle at index 0.
CLEARSCREEN
SETBITINDEX 0
REPEAT 3 [FORWARD 50 RIGHT 120]
BITCUT 100 100

; Set a square at index 1.
CLEARSCREEN
SETBITINDEX 1
REPEAT 4 [FORWARD 50 RIGHT 90]
BITCUT 100 100

; Paste the bitmaps along two concentric circles.
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