🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_start_y

Retrieve the first y coordinate of this shape. This is part of the reference section.

Purpose

Get the vertical coordinate from which the first segment draws.

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(len(shape.get_start_y()))

Availability

Available for all platforms.

See also