---
name: "PS_lineto"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_lineto"
---

# PS\_lineto(3)

Draws a line

## NAME

PS\_lineto — Draws a line

## SYNOPSIS

\#include \<pslib.h\>

void PS\_lineto(PSDoc \*psdoc, float x, float y)

## DESCRIPTION

Adds a straight line from the current point to the given coordinates  to the current path.  Use [PS\_moveto(3)](/PS_moveto/3.md) to set the starting point of the line.

## SEE ALSO

[PS\_moveto(3)](/PS_moveto/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
