Back to TILs

pikchr

Table of contents

Introduction

Online editor on https://pikchr.org/home/pikchrshow

Sample

Pikchr sample 01
Fig. 1Pikchr sample 01

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

Pikchr macro flag
Fig. 2Pikchr macro flag
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

References