Skip to main content

Path.intersectsY()

The Path.intersectsY() method returns the Point object(s) where the path intersects with a given Y-value.

warning

This method can sometimes fail to find intersections in some curves due to a limitation in an underlying Bézier library. Please see Bug #3367 for more information.

Signature

array|false path.intersectsY(float y)

Example

Example of the Path.intersectsY() method