Reference for show_and_quit
Show the sketch and quit immediatley afterwards. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
show_and_quit
Text
Transform
Purpose
Show the sketch to the user and quit immediately afterwards, a routine potentially useful for testing.
Snippet
Show a sketch briefly
sketch.show_and_quit()
Parameters
- ax: The container into which the sketch should be shown. Currently only supported for Sketch2DStatic. Optional and ignored on most renderers.
Availability
Available for all platforms. For static renderer, this does nothing. For web, will leave the sketch visible but will stop the event loop. For app, will close the window.