summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/pathstyle.xp
blob: 47fe65e5e111cad0296a25ab8e038b095393c2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -*-ePiX-*- */
#include "epix.h"
using namespace ePiX;

void dash_sample(double ht, std::string pattern)
{
  line_style(pattern);
  line(P(0,ht), P(3,ht));
  label(P(3, ht), P(4,0), "\\code{line\\_style(\""+pattern+"\")}", r);
}

int main() {
  picture(P(0,0), P(4,4), "4x1in");

  begin();

  dash_sample(4, "-\\ \\ -");
  dash_sample(3, "-\\ \\ \\ \\ -");
  dash_sample(2, " .\\ ");
  dash_sample(1, "-\\ .\\ -");
  dash_sample(0, ".\\ - .");

  end();
}