Reference for get_is_closed
Determine if a shape can be filled. 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
get_is_closed
Sound (future)
Style
System
Text
Transform
Purpose
Determine if the shape is closed so can be filled. Returns true if closed (can be filled) and false otherwise. Requires the shape to be finished (via end or close); raises an error otherwise.
Snippet
Inspect a closed shape.
shape = sketch.start_shape(50, 100) shape.add_line_to(150, 200) shape.add_line_to(150, 250) shape.close() print(shape.get_is_closed())
Availability
Available for all platforms.