Ce que fait la commande
SpriteInBox prend iSprite (un entier), x1 (un flottant), y1 (un flottant), x2 (un flottant) et y2 (un flottant), et rend un entier.
Syntaxe
SpriteInBox(iSprite integer, x1 float, y1 float, x2 float, y2 float) → integerParamètres
| Nom | Type |
|---|---|
| iSprite | integer |
| x1 | float |
| y1 | float |
| x2 | float |
| y2 | float |
Chaque forme rend
integer
Exemple · engendré
DO Print(SpriteInBox(1, 1.0, 1.0, 1.0, 1.0)) Sync()LOOPSpriteInBox est appelé et sa réponse est affichée à chaque image. La boucle DO … LOOP n'est pas décorative : un programme BASIC classique s'arrête dès qu'il n'a plus de lignes, et c'est Sync() qui dessine l'image.