Reference for draw_buffer
Create an off-screen buffer. This is part of the reference section.
Arc
Buffer
draw_buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Create an "offscreen buffer" which can be used to save the results of drawing operations to memory, making them much faster to draw again later or in repetition. Note that buffers with opaque backgrounds may be more efficient in some renderers than buffers with transparent backgrounds.
Snippet
Draw a buffer called "example-buffer" at x position of 100 and y position of 50.
sketch.draw_buffer(100, 50, 'example-buffer')
Parameters
- x: The horizontal coordinate at which to draw the buffer contents.
- y: The vertical coordinate at which to draw the buffer contents.
- name: The name of the buffer to draw.
Examples
Availability
Available for all platforms.