Clipping And Scrolling (frames)
Basic Clipping
Syntax
frame left top right bottom (
// Content to be clipped goes here
)Example: Basic Clipping
// Define frame boundaries
left = -100
right = 100 // Creates a 200px wide frame
top = 100
bottom = -100 // Creates a 200px tall frame
mainloop:
frame left top right bottom (
// Draw a large square that will be clipped
square 10000 10000 20
// Only the portion within the 200x200 frame will be visible
)Scrollable Frames
Two-Dimensional Scrolling Syntax
Vertical-Only Scrolling Syntax
Example: Two-Dimensional Scrolling
Example: Vertical-Only Scrolling
Important Notes
Last updated