Reference for get_max_x
Determine the maximum x coordinate of a shape. 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_max_x
Sound (future)
Style
System
Text
Transform
Purpose
Determine the maximum x coordinate (relative to start position) that this shape may reach to. This includes bezier control points but does not try to include stroke weight in its calculation.
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_max_x())
Availability
Available for all platforms.