pikchr
Table of contents
Introduction
Online editor on https://pikchr.org/home/pikchrshow
Sample
The figure above was generaed by the following code:
topmargin += 1mm
margin = 5mm
arrow right 200% "Markdown" "Source"
box rad 10px "Markdown" "Formatter" "(markdown.c)" fit
arrow right 200% "HTML+SVG" "Output"
arrow <-> down 70% from last box.s
box same "Pikchr" "Formatter" "(pikchr.c)" fit
# Extracted by md2pug
Macro
- https://pikchr.org/home/forumpost/83e98ec009
- Once created, a macro cannot be redefined. If you attempt to redefine a macro by providing a second “define” statement with the same macro name, the macro name will be replaced by the previous macro body definition during lexical analysis, likely resulting in a syntax error.
CP: dot invisible;
define flag {
line go 1.5 heading $flagAngle \
then go 0.5 heading $flagAngle + 110 \
then go 0.5 heading $flagAngle + 250;
move to CP;
}
margin = 10mm;
$flagAngle = 00; flag;
$flagAngle = 30; flag;
$flagAngle = 60; flag;
# Extracted by md2pug