[metapost] accessing control points

Palle Jørgensen gimmespam at pallej.dk
Mon Nov 27 08:00:58 CET 2006

Stephan Hennig <mailing_list at arcor.de> writes:

> Hi,
> is there a way to access control points of a bezier curve segment in
> MetaPost other that "show"ing a path on the console?

There are the commands 'precontrol' and 'postcontrol':

  path p;
  p = origin..(2cm,2cm)..(1cm,1cm)..cycle;
  draw p;
  pickup pencircle scaled 2mm;
  drawdot point 1 of p withcolor red;
  drawdot precontrol 1 of p withcolor green;
  drawdot postcontrol 1 of p withcolor blue;

Palle Jørgensen, Stud.mag., BSc

E-post: hamselv(at)pallej(dot)dk
WWW:    http://pallej.dk/

More information about the metapost mailing list