Class

PathNode.LineTo

Draws a line from the current point to the specified absolute (x,y) coordinate.

Source set: Common
public data class LineTo(public val x: Float, public val y: Float) : PathNode()

Draws a line from the current point to the specified absolute (x,y) coordinate. Corresponds to the L path data command.

Parameters

x The absolute x-coordinate of the line's end point.
y The absolute y-coordinate of the line's end point.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: