digraph G {
a -> b [dir=both color="red:blue"]
c -> d [dir=none color="green:red;0.25:blue"]
}
@startuml
clock "Clock_0" as C0 with period 50
clock "Clock_1" as C1 with period 50 pulse 15 offset 10
binary "Binary" as B
concise "Concise" as C
robust "Robust" as R
analog "Analog" as A
@0
C is Idle
R is Idle
A is 0
@100
B is high
C is Waiting
R is Processing
A is 3
@300
R is Waiting
A is 1
@enduml
module demo_device #(
//# {{}}
parameter SIZE = 8,
parameter RESET_ACTIVE_LEVEL = 1
) (
//# {{clocks|Clocking}}
input wire clock,
//# {{control|Control signals}}
input wire reset,
input wire enable,
//# {{data|Data ports}}
input wire [SIZE-1:0] data_in,
output wire [SIZE-1:0] data_out
);
// ...
endmodule
box
box (with
rounded
corners)
circle
ellipse
oval
(tall &
thin)
oval
cylinder
file
dot
lines
arrows
splines
Examples Of Pikchr Objects
AllObjects: [
# First row of objects
box "box"
box rad 10px "box (with" "rounded" "corners)" at 1in right of previous
circle "circle" at 1in right of previous
ellipse "ellipse" at 1in right of previous
# second row of objects
OVAL1: oval "oval" at 1in below first box
oval "(tall &" "thin)" "oval" width OVAL1.height height OVAL1.width at 1in right of previous
cylinder "cylinder" at 1in right of previous
file "file" at 1in right of previous
# third row shows line-type objects
dot "dot" above at 1in below first oval
line right from 1.8cm right of previous "lines" above
arrow right from 1.8cm right of previous "arrows" above
spline from 1.8cm right of previous go right .15 then .3 heading 30 then .5 heading 160 then .4 heading 20 then right .15
"splines" at 3rd vertex of previous
# The third vertex of the spline is not actually on the drawn
# curve. The third vertex is a control point. To see its actual
# position, uncomment the following line:
#dot color red at 3rd vertex of previous spline
# Draw various lines below the first line
line dashed right from 0.3cm below start of previous line
line dotted right from 0.3cm below start of previous
line thin right from 0.3cm below start of previous
line thick right from 0.3cm below start of previous
# Draw arrows with different arrowhead configurations below
# the first arrow
arrow <- right from 0.4cm below start of previous arrow
arrow <-> right from 0.4cm below start of previous
# Draw splines with different arrowhead configurations below
# the first spline
spline same from .4cm below start of first spline ->
spline same from .4cm below start of previous <-
spline same from .4cm below start of previous <->
] # end of AllObjects
# Label the whole diagram
text "Examples Of Pikchr Objects" big bold at .8cm above north of AllObjects
Markdown
Source
Markdown
Formatter
(mdbook)
HTML+SVG
Output
Pikchr
Preprocessor
(mdbook-pikchr)
arrow right 200% "Markdown" "Source"
box rad 10px "Markdown" "Formatter" "(mdbook)" fit
arrow right 200% "HTML+SVG" "Output"
arrow <-> down 70% from last box.s
box same "Pikchr" "Preprocessor" "(mdbook-pikchr)" fit
MMU
Filesystem
Scheduler
IO
Network
HAL
MMU
8
9
10
11
12
Svgbob
is
a
diagramming
model
which
uses
a
set
of
typing
characters
to
approximate
the
intended
shape.
It
uses
a
which
are
combination
of
characters
readily
available
on
your
keyboards.
What
can
it
do?
Basic
shapes
.
.
.
.
Quick
logo
scribbles
.::::.
Even
unicode
box
drawing
characters
are
supported
Circle,
quarter
arcs,
half
circles,
3
4
quarter
arcs
Grids
Graphics
Diagram
0
3
1
2
4
7
5
6
P
v0
v3
X
Eye
+y
⤴
+z
Reflection
+x
Refraction
v1
v2
CJK
characters
Sequence
Diagrams
A
B
C
D
B
F
E
G
C
Bob
Alice
hello
Is
Alice
Bob
it
ok?
0
1
3
4
.
.
5
6
7
2
Plot
diagrams
Uin
Udc
500ms
Inactive
Active
Cpu.Qon
Railroad
diagrams
elem
;
n
x
,
x
,
O
struct
name
:
name
:
tpe
body
O
,
Statistical
charts
E
D
C
B
A
5
10
15
20
25
30
35
40
45
50
E
D
C
B
A
5
10
15
20
25
30
35
40
45
50
85.67
78.20
70.73
63.27
55.80
48.33
40.87
33.40
25.93
18.47
11.00
2011
2012
2013
2014
2015
2016
Flow
charts
OS
API
Block
diagrams
vncviewer
[
]
,
,
gateway
vncserver
)
.
'
[
...
.
internet
'
.
Valveless
Pulsejet
engine
'
.
GND
power
switch
HHO
Generator
+
Battery
thrust
fuel
intake
^
^
spark
plug
Water
intake
Solar
panel
micro
henry
coil
w
tuning
'
pico
farad
cap
trimmable
ground
plane
foil
symbolic
antenna
lug
PC
Board
Mindmaps
Worklaod
Alpha
Initial
Release
Planning
Patch
1
Initial
research
Patch
2
Beta
.
Release
.
Push
backs
Setbacks
Reception
Team
Career
change
PTO
Bug
It
can
do
complex
stuff
such
as
circuit
diagrams
+10
15V
0,047R
+
.
470
+
uF
6
7
8
1
GND
`
220R
BYV29
12V6
OUT
+
2
C
GND
C
3
1nF
C
+
GND
GND
5
4
2k
1k0
GND
2k2
LED
1k
BC
547
IRF9Z34
MC34063
6000
micro
Farad,
40V
Capacitor
30uH
470
uF
5k6
+
3k3
in
Serie
Latest
addition:
Styling
of
tagged
shapes
Advantages:
Plain
text
format
Ultimately
portable,
Degrades
gracefully
Even
when
not
using
a
graphical
renderer,
it
would
still
looks
as
text
based
diagrams.
Paste
the
text
in
your
source
code.
Easiest
to
use.
Anyone
knows
how
to
edit
text.
backward
compatible
and
future
proof.
good
.--------------.
| Don't draw me|
| |
'--------------'
Udc_OK
文
件
系
统
调
度
器
⠶
⠶
...°
]
⠶
⠶
⠶
Svgbob is a diagramming model
which uses a set of typing characters
to approximate the intended shape.
.---.
/-o-/--
.-/ / /->
( * \/
'-. \
\ /
'
It uses a combination of characters
which are readily available on your keyboards.
What can it do?
o-> Basic shapes
.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -.
! . :
! +------+ .------. .------. /\ .' `. :
! | | | | ( ) / \ .' `. ^ :
! +------+ '------' '------' '----' `. .' / # :
! _______ ________ # `.' / ^ / :
! / \ /\ \ \ o----> | ^ # / / :
! / \ / \ ) ) <----# | | ^ : / v :
! \ / \ / /_______/ v | ! : :
! \_______/ \/ o ! V :
! :
! O :
! .-----------. . <. .> . ^ \ :
! ( ) ( ) ( ) \ \ :
! `-----+ ,---' `> ' ` <' \ v :
! |/ * :
! () ' _ __ :
! __ ,-. .--. .--.--. .--. .' '. ,' '. :
! (_) (__) ( ) ( ) ( ( ) ) ( ) ( ) ( ) :
! `-' `--' `--'--' `--' `._.' `.__.' :
! !
! ___ ____ ____ _____ !
! ,' `. ,' `. .' `. ,' `. !
! / \ / \ / \ / \ !
! \ / \ / ( ) ( ) !
! `.___.' `.____.' \ / \ / !
! `.____.' `._____.' !
! ______ !
! ,' `. !
! / \ .-----. .----. ".--------------." !
! | | \ / \ \ "| Don't draw me|" !
! | | \ / \ \ "| |" !
! \ / ' '----' "'--------------'" !
! `.______.' !
! !
`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
o-> Quick logo scribbles
.---. _
/-o-/-- .--. |-| .--.
.-/ / /-> /--. \ .--)-| .--.-. //.-.\
( * \/ / O )| | |-| |->| | (+(-*-))
'-. \ /\ |-// . * | '--'-' \\'-'/
\ / \ '+'/ \__/ '--'
' '--'
_____
.----. _ / __)\
| | ,--(_) | / \ \
__|____|__ _/ .-. \ ___| |__/ /
| ______--| (_)( ) ) / (_ _)_/
`-/.::::.\-' \ `-'_/ / / | |
'--------' `--(_) \ \__/ |
\(_____/
o-> Even unicode box drawing characters are supported
┌─┬┐ ╔═╦╗ ╓─╥╖ ╒═╤╕
├─┼┤ ╠═╬╣ ╟─╫╢ ╞═╪╡
└─┴┘ ╚═╩╝ ╙─╨╜ ╘═╧╛
╭─┬╮
├─┼┤
╰─┴╯
o-> Circle, quarter arcs, half circles, 3/4 quarter arcs
____ __ __ ____
,' `. ,' `. ,' `. __ __
/ \ / \ / \ ,' `.
\ / / \
`.____.' \ / \ / \ /
`.__ __.' `.____.' `.__ __.'
____ __ __ ____
,' `. ,' `. ,' `.
/ \ / \ / \
\ \ / \ / /
`.__ `.____.' `.____.' __.'
o-> Grids
.----. .----.
/ \ / \ .-----+-----+-----.
+ +----+ +----. | | | | .-----+-----+-----+-----+
\ / \ / \ | | | | / / / / /
+----+ +----+ + +-----+-----+-----+ +-----+-----+-----+-----+
/ \ / \ / | | | | / / / / /
+ +----+ +----+ | | | | +-----+-----+-----+-----+
\ / \ / \ +-----+-----+-----+ / / / / /
'----+ +----+ + | | | | +-----+-----+-----+-----+
\ / \ / | | | | / / / / /
'----' '----' '-----+-----+-----' '-----+-----+-----+-----+
___ ___ .---+---+---+---+---. .---+---+---+---. .---. .---.
___/ \___/ \ | | | | | | / \ / \ / \ / \ / | +---+ |
/ \___/ \___/ +---+---+---+---+---+ +---+---+---+---+ +---+ +---+
\___/ \___/ \ | | | | | | \ / \ / \ / \ / \ | +---+ |
/ \___/ \___/ +---+---+---+---+---+ +---+---+---+---+ +---+ +---+
\___/ \___/ \ | | | | | | / \ / \ / \ / \ / | +---+ |
\___/ \___/ '---+---+---+---+---' '---+---+---+---' '---' '---'
o-> Graphics Diagram
*
0 3 P * Eye / ^ /
*-------* +y \ +) \ / Reflection
1 /| 2 /| ^ \ \ \ v
*-+-----* | | v0 \ v3 --------*--------
| |4 | |7 | ◄╮ *----\-----*
| *-----|-* ⤹ +-----> +x / v X \ ,-.<-------- o
|/ |/ / ⤴ / o \ ( / ) Refraction / \
*-------* v / \ `-' / \
5 6 +z v1 *------------------* v2 | o-----o
v
o-> CJK characters
.------------. | .-----------. | .-----.
| 文件系统 | | | 调度器 | | | MMU |
'------------' | '-----------' | '-----'
o-> Sequence Diagrams
.---> F
A B C D /
*-------*-----*---*----*-----> E
\ ^ \
v / '---> G
B --> C -'
,-.
`-'
/|\
,---. |
|Bob| / \
`-+-' Alice
| hello |
|-------------->|
| |
| Is it ok? |
|<- - - - - - - |
,-+-. Alice
|Bob| ,-.
`---' `-'
/|\
|
/ \
,─.
( 0 )
`-'
/ \
/ \
V V
,─. ,─.
( 1 ) ( 4 )
`-' `-' .
/ \ | \ `.
/ \ | \ `.
V V | \ `.
,─. ,─. V V V
( 2 ) ( 3 ) ,─. ,─. ,─.
`─' `─' ( 5 ) ( 6 ) ( 7 )
`─' `─' `─'
o-> Plot diagrams
▲
Uin ┊ .------------------------
┊ |
┊ |
*---'┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄▶
Udc▲
"Udc_OK"┊ .---------------------
┊ / :
┊ / :
*---'┄┄┄┄:┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄▶
:<----->:
▲ 500ms :
┊ :
Cpu.Qon ┊┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄.-----------
┊ | Inactive
┊ Active |
*----------------'┄┄┄┄┄┄┄┄┄┄┄▶
o-> Railroad diagrams
┌------┐ .-. ┌---┐
o--╮---| elem |--( ; )-| n |--╭--o
| └------┘ `-' └---┘ |
| ╭------>------╮ |
| | ┌---┐ | |
╰-╯-╭--| x |--╮-╰----------╯
| | └---┘ | |
| | .-. | |
| `--( , )--' ^
| `-' |
| ╭-------->---------╮ |
| | ┌---┐ .-. | |
╰--╰-╭-| x |--( , )-╮-╯----╯
| └---┘ `-' |
`-------<------'
.------------>---------------.
┌-------------┐ .-. .-. | ┌------┐ .-. ┌-----┐ | .-. ┌------┐
O____| struct_name |_( : )_( | )_◞__| name |_( : )__| tpe |___◟___( | )__| body |______O
◝ └-------------┘ `-' `-' ◜ └------┘ `-' └-----┘ ◝ `-' └------┘ ◜
| | .-. | |
| `------------<------( , )--' |
| `-' |
`--------------------------------------------------------------------------------'
o-> Statistical charts
E +-------------------------*--+ E | o
D |-------------------*--*--|--* D | o o | o
C |-------------*--* | | | | C | o o | | | |
B |-------*--* | | | | | | B | o o | | | | | |
A +-*--*--+--+--+--+--+--+--+--+ A +-o--o--|--|--|--|--|--|--|--|
5 10 15 20 25 30 35 40 45 50 5 10 15 20 25 30 35 40 45 50
85.67 ┤ ╭╮
78.20 ┤ ││ ╭╮
70.73 ┤ ││ ╭╮ ╭╮ ╭╮ ╭╮ ╭╯╰─╮
63.27 ┤ ╭╮ ╭─╮ ││ ╭╯╰╮│╰─╯╰╮╭╮│╰──╯ │╭
55.80 ┤ ╭╮ ╭╮││╭╮ ╭╮╭╮ │ ╰─╯╰─╯ ││ ││││ ╰╯
48.33 ┤ │╰╮ ╭──╮ │││││╰╮│╰╯│ │ ╰╯ ╰╯╰╯
40.87 ┤╭╮ │ ╰╮╭╮ ╭╯ ╰─╮╭╮╭─╯╰╯╰╯ ╰╯ ╰──╯
33.40 ┤││ │ ╰╯╰╮╭╯ ││╰╯
25.93 ┤││╭╯ ╰╯ ╰╯
18.47 ┼╯││
11.00 ┤ ╰╯
└───────────┴───────────┴───────────┴───────────┴───────────┴────
2011 2012 2013 2014 2015 2016
o-> Flow charts
.--. .---. .---. .---. .---. .---. .---.
| | OS API '---' '---' '---' '---' '---' '---'
v | | | | | | |
.-. .-. .-. | v v | v | v
.-->'-' '-' '-' | .------------. | .-----------. | .-----.
| \ | / | | Filesystem | | | Scheduler | | | MMU |
| v . v | '------------' | '-----------' | '-----'
|_______/ \_____| | | | |
\ / v | | v
| ____ .----. | | .---------.
'--> /___/ | IO |<----' | | Network |
'----' | '---------'
| | |
v v v
.---------------------------------------.
| HAL |
'---------------------------------------'
o-> Block diagrams
vncviewer .-,( ),-.
__ _ .-( )-. gateway vncserver
[__]|=| ---->( internet )-------> __________ ------> ____ __
/⠶⠶ /|_| '-( ).-' [_...__...°] | | |==|
'-.( ).-' |____| | |
/⠶⠶⠶ / |__|
Valveless --------.
Pulsejet engine /
V
_________.------------------+
.---------' / -------->
/ .-------._________ \ thrust-->
( ( _________ `-----------o------+ -------->
\ `----' '----' |
`------._ __^___.----. |
|| | |
fuel __^ || | ^__spark |GND
intake || | plug |
|| | |
|| | |
____|| `------------. |
/ .---' | |
| | | | +-+-+-+-+-+
.---| |---. __ | | |-+-+-+-+-|
___| +-+-+--|--o `---------*-----|--------------O-+-+-+-+-|
.-------> ___ ||||||| | power | *--------------O-+-+-+-+-|
\ | ||||||| | switch | | |-+-+-+-+-|
Water `-+-+-+-+-' +--o-----o--+ +-+-+-+-+-+
intake HHO | |
Generator | + - | Solar panel
+-----------+
Battery
=======
===== symbolic antenna
===
=
|
| micro henry
| coil w/tuning lug
| .----.
| (.-') |
| (.-') |
| (.-') | pico farad cap
| (.-' | ___ (trimmable)
| | | |___|
PC -> .----'-----'---'---'
Board `-------------------
ground plane (foil)
o-> Mindmaps
.--> Alpha
/
.----> Initial Release
Planning *-------. / \
\ / '---> Patch 1
Initial research \ / \
* \ / '--> Patch 2
\ \ /---------> Beta
\ \ /
\ o o _______
\ .---. *--.___ / \
'------> ( ) '------O-> . Release .
`---' o \_______/
o o o \
/ \ \ \
.--' \ \ \
/ \ \ '----+-> Push backs
/ \ \ \
/| \ \ '----> Setbacks
/ | \ \
V /| \ '-----> Reception
Team / | \
v /| \
Worklaod / . '-->> Career change
V /
PTO /
V
Bug
o-> It can do complex stuff such as circuit diagrams
+10-15V ___0,047R
*---------o-----o-|___|-o--o---------o----o-------.
+ | | | | | | | |
-===- _|_ | | .+. | | |
-===- .-. | | | | 2k2 | | |
-===- 470| + | | | | | | _|_
- | uF| '--. | '+' .+. | \ / LED
+---------o |6 |7 |8 1k | | | -+-
___|___ .-+----+--+--. | | | |
-═══- | | '+' | |
- | |1 | |/ BC |
GND | +------o--+ 547 |
| | | |`> |
| | ,+. | |
.-------+ | 220R| | o----||-+ IRF9Z34
| | | | | | |+->
| | MC34063 | `+' | ||-+
| | | | | | BYV29 -12V6
| | | '----' o--|<-o----o--X OUT
6000 micro - | + | |2 | | |
Farad, 40V ___|_____ | |--o C| | |
Capacitor ~ ~ ~ ~ ~ | | GND 30uH C| | --- 470
| | |3 1nF C| | ### uF
| | |-------||--. | | | +
| '-----+----+-' | GND | GND
| 5| 4| | |
| | '-------------o-------------o
| | ___ |
`-------------*------/\/\/------------o--|___|-'
2k | 1k0
.+.
| | 5k6 + 3k3
| | in Serie
'+'
|
GND
o-> Latest addition: Styling of tagged shapes
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
! :
! +------+ .------. .------. .--------------------------. :
! | {r1} | | {r2} | ( ) | | :
! +------+ '------' '------' | | :
! _______ ________ | | :
! / \ /\ \ \ | | :
! / \ / \ ) ) | | :
! \ / \ / /_______/ | | :
! \_______/ \/ | | :
! | {bigrect} | :
! | | :
! `--------------------------' :
! :
! ___ ____ ____ ____ !
! ,' `. ,' `. .' `. .' `. !
! / 8 \ / 9 \ / \ / \ !
! \ {a} / \ {b} / ( 10 ) ( 11 ) !
! `.___.' `.____.' \ {red} / \ {a,b} / !
! `.____.' `.____.' !
! ______ !
! ,' `. !
! / \ .-----. .----. !
! | 12 | \ / \ \ {container} !
! | {c} | \ / \ \ !
! \ / ' '----' !
! `.______.' !
! !
`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
.-------------.
/ Advantages: /
'-------------'
-* Plain text format
Ultimately portable, backward compatible and future proof.
-* Degrades gracefully
Even when not using a graphical renderer, it would still looks good
as text based diagrams. Paste the text in your source code.
-* Easiest to use. Anyone knows how to edit text.
# Legend:
r1 = {
fill: papayawhip;
}
r2 = {
fill: crimson;
}
a = {
stroke-dasharray: 8;
fill: lightblue;
}
b = {
stroke: blue;
}
bigrect = {
fill: yellow;
stroke: red;
}
red = {
fill:red;
stroke:blue;
}
'
'
Database
o
iOS
Not
a
dot
3
Derived
Implementation
A
<
>
V
Server
Cloud
Internet
WiFi
Bluetooth
Windows
OS
X
Laptop
1
Laptop
2
#
#
#
#
LAN
Ubuntu
Ubuntu
Dedicated
Server
Rack
Tablet
1
16
4
1
2
8
52
14
0
9
10
0
1
⋯
Basis
⋯
⎧
⎨
⎩
⋯
Xᵢ
⋯
⋯
>
A
B
Y
C
1
2
3
4
1
2
3
4
1
2
3
4
1
1
1
2
2
2
3
3
3
4
4
4
A
Box
Round
Mixed
Rounded
Diagonals
&
Square
Corners
Diag
line
if
a
>
b
obj
fcn
Join
Interior
Search
Done?
Curved
line
Curved
Vertical
not:line
'quotes'
A
B
*bold*
A
dash
is
not
a
line
Nor
is
this.
<
Base
Interface
OtherInterface
|
|
Poor
man's
rail
road
Style
#1
o
elem
;
n
o
x
,
x
,
O
struct
name
:
name
:
tpe
body
O
,
Style
#2
elem
;
n
x
,
x
,
struct
name
:
name
:
tpe
body
,
120
90
135
^
^
'
`
.
.
'
`
.
.
225
60
45
180
0
240
270
300
315
120
^
90
135
^
^
'
`
.
`
.
.
225
240
270
300
315
60
45
150
◤
◥
30
180
0
210
◣
330
◢
.
.
.
.
.
.
'
'
`
'
|
.
|
.
'
`
|
.
|
.
`
'
|
.
|
.
'
`
|
.
|
.
┏━━━
━━━┳
━┳━
┃
A₁
┃
A₂
┃
┡━━━
━━━╇
━╇━
┳━
━━
━┓
┃
Aⱼ
┃
╇━
━━
━┩
⠠
⠐
⠈
⠈
⠐
⠠.
⠠
⠐
⠈
⠠
⠐'
⠈
⠈
⠐
⠠
⠠
⠐
⠈
⠈
⠐
⠠
⠈
⠐
⠠
⠠
⠐
⠈
⠠
⠐
⠈
⠈
⠐
⠠
⠠
⠐
⠈
⠈
⠐
⠠
⠈
⠐
⠠
A
|
|
<|----+----|>
|
|
_
V
.-. .--------.
.-+ | | |
.--+ '--. |'--------'|
| Server Cloud |<------------------>| Database |
'-------------' | |
^ ^ '--------'
Internet | | ^
.------------------------' '-------------. |
| | v
v v .------. .------.
.--------. WiFi .--------. Bluetooth .-----. / # # /| / # # /|
| |<------------->| |<---------->| | +------+/| LAN +------+/|
|Windows | | OS X | | iOS | | +/|<--->| +/|
+--------+ +--------+ | | |Ubuntu+/| |Ubuntu+/|
/// ____ \\\ /// ____ \\\ | o | | +/ | +/
'------------' '------------' '-----' '------' '------'
Laptop 1 Laptop 2 Tablet 1 Dedicated Server Rack
^
|
|
┏━━━━┳━━━━┳ ┳━━━━┓
┃ A₁ ┃ A₂ ┃ ⋯ ┃ Aⱼ ┃ <--- Basis
┡━━━━╇━━━━╇ ╇━━━━┩
│ 16 │ 4 │ ⋯ │ 9 │
⎧ ├────┼────┼ ┼────┤
│ │ 1 │ -2 │ ⋯ │ 10 │
Xᵢ ⎨ ├────┼────┼ ┼────┤
│ │ 8 │ 52 │ ⋯ │ 0 │
⎩ ├────┼────┼ ┼────┤
│ 14 │ 0 │ ⋯ │ -1 │
└────┴────┴ ┴────┘
---|>
.-. .-. .-. .-. .-. .-.
| | | | | | | | | | | |
.---------. .--+---+--. .--+---+--. .--| |--. .--+ +--. .------|--.
| | | | | | | | | | | | | | | | | |
'---------' '--+---+--' '--+---+--' '--| |--' '--+ +--' '--|------'
| | | | | | | | | | | |
'-' '-' '-' '-' '-' '-'
____ *
| |_____+---. |
o _____| )----------)-------.
/ \ | +---' | __|__
/___\ | | \ /
| '-------------. | \ /
A ----------------' | | o
.-------------------. o-----)-------' |
| |___+---. | |___+---.
B ---*---.__+---. ___| )--*--.__++---. ____) )----- Y
__| )o---*--' +---' ______)) )---' +---'
C -------' +---' | | ++---'
| o
| / \
| /___\
| |
'--------------'
. . . .--- 1 .-- 1 / 1
/ \ | | .---+ .-+ +
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
+ + | | | | ---+ ---+ +
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
/ \ / \ | | | | | | | | '---+ '-+ +
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
.-------------------. ^ .---.
| A Box |__.--.__ __.--> | | |
| | '--' v | |
'-------------------' | |
Round *---(-. |
.-----------------. .-------. .----------. .-------. | | |
| Mixed Rounded | | | / Diagonals \ | | | | | |
| & Square Corners | '--. .--' / \ |---+---| '-)-' .--------.
'--+------------+-' .--. | '-------+--------' | | | | / Search /
| | | | '---. | '-------' | '-+------'
|<---------->| | | | v Interior | ^
' <---' '----' .-----------. ---. .--- v |
.------------------. Diag line | .-------. +---. \ / . |
| if (a > b) +---. .--->| | | | | Curved line \ / / \ |
| obj->fcn() | \ / | '-------' |<--' + / \ |
'------------------' '--' '--+--------' .--. .--. | .-. +Done?+-'
.---+-----. | ^ |\ | | /| .--+ | | \ /
| | | Join | | Curved | \| |/ | | \ | \ /
| | +----> | '-' Vertical '--' '--' '-- '--' + .---.
'---+-----' | | | 3 |
v not:line 'quotes' .-' '---'
.---+--------. / A || B *bold* | ^
| Not a dot | <---+---<-- A dash--is not a line v |
'---------+--' / Nor/is this. ---
<|---
_|_
\ /
'
+-------+ +-----------+
| Base | | Interface |
+---^---+ +-----^-----+
/_\ /_\ _
| : (_) OtherInterface
| : |
| : |
+---------+ +----------------+
| Derived | | Implementation |
+---------+ +----------------+
| |
_____\| |/_____
/| |\
| |
----------- __________
^ | | ^
/|\ | | /|\
| \|/ \|/ |
| ----V---- ____V_____ |
Poor man's rail road
Style #1
┌------┐ .-. ┌---┐
o______| elem |__( ; )_| n |_____o
◝ └------┘ `-' └---┘ ◜
| ╭------>-----╮ |
| | ┌---┐ | |
◟_◞____| x |___◟___________◞
| ◜ └---┘ ◝ |
| | .-. | |
| `--( , )--' ^
| `-' |
| ╭-------->--------╮ |
| | ┌---┐ .-. | |
◟___◞__| x |__( , )___◟____◞
| └---┘ `-' |
`-------<------'
.------------>---------------.
┌-------------┐ .-. .-. | ┌------┐ .-. ┌-----┐ | .-. ┌------┐
O____| struct_name |_( : )_( | )_◞__| name |_( : )__| tpe |___◟___( | )__| body |______O
◝ └-------------┘ `-' `-' ◜ └------┘ `-' └-----┘ ◝ `-' └------┘ ◜
| | .-. | |
| `------------<------( , )--' |
| `-' |
`--------------------------------------------------------------------------------'
Style #2
┌------┐ .-. ┌---┐
o--╮---| elem |--( ; )-| n |--╭--o
| └------┘ `-' └---┘ |
| ╭------>------╮ |
| | ┌---┐ | |
╰-╯-╭--| x |--╮-╰----------╯
| | └---┘ | |
| | .-. | |
| `--( , )--' ^
| `-' |
| ╭-------->---------╮ |
| | ┌---┐ .-. | |
╰--╰-╭-| x |--( , )-╮-╯----╯
| └---┘ `-' |
`-------<------'
.------------>-----------------.
┌-------------┐ .-. .-. | ┌------┐ .-. ┌-----┐ | .-. ┌------┐
O-╮--| struct_name |-( : )-( | )-╰-╮-| name |-( : )--| tpe |--╮-╯---( | )--| body |--╭---O
| └-------------┘ `-' `-' | └------┘ `-' └-----┘ | `-' └------┘ |
| | .-. | |
| `------------<------( , )--' |
| `-' |
`----------------------------------------------------------------------------------'
120 90 60
135 ^ ^ ^ ^ 45
^ \ | / .'
`. \ | / .'
`. \ | / .'
`. \ | / .'
`.\_/.'
180 <---------(_)-------------> 0
.'/|\`.
.' / | \ `.
.' / | \ `.
.' / | \ `.
V / | \ `.
225 V V V V
240 270 300 315
120 90 60
135 ^ ^ ^ ^ 45
150 ^ \ | / .' ◥ 30
◤ `. \ | / .' ⠠⠐⠈
⠈⠐⠠ `. \ | / .' ⠠⠐⠈
⠈⠐⠠ `. \ | / .' ⠠⠐⠈
⠈⠐⠠ `.\_/.'⠠⠐⠈
180 <--------------(_)------------------> 0
⠠⠐⠈.'/|\`.⠈⠐⠠
⠠⠐⠈ .' / | \ `. ⠈⠐⠠
210 ⠠⠐⠈ .' / | \ `. ⠈⠐⠠
◣ .' / | \ `. ⠈⠐⠠ 330
V / | \ `. ◢
225 V V V V
240 270 300 315
^ ^ ^
\|/
.
/|\
v V v
^ ^ ^
\|/
<-+->
/|\
v V v
\|/
-.-
/|\
| \/
-+- /\
|
| | | |
+-- --+ +-- --+ +-- --+
| | | |
| | | |
.- -. .- -. '- -'
| |
.- -. .-.
'- -' | | | |
'-'
\ | / |
. . . .
| / | \
\ /
. .
/ \
. . . .
/| |\ |\ /|
| \/ |
| /\ |
\| |/ |/ \|
' ' ' '
\
/
/
\
/ \
.-- --.
/ \
/ \
--. .--
/ \
\ /
--.-- --.-- --.-- --.--
/ \
| |
. .
/| |\
|
.
/ \
\|/
.
/|\
\|/
--.--
/|\
\|/
--+--
/|\
|/ \|
. .
| |
-. -.
/ \
.- .-
/ \
/ / \ \
'- '-------' -'
.-.
( )
'-'
.------.
( )
'------'
________
/ /
/ /
/_______/
________
\ \
\ \
\_______\
+---------+
\ \
+---------+
|/ \|
----+ +----
|`> <'|
| |
| / \ |
------<' `>----
|\ /|
| |
| |
|.> <.|
-----+ +----
|\ /|
| |
| |
|/ \|
------<. .>----
| \ / |
| |
| |
|/ \|
----+ +----
|`> <'|
| |
| + + |
------<' `>----
|\ /|
| |
| |
|.> <.|
-----+ +----
|\ /|
| |
| |
|/ \|
------<. .>----
| + + |
| |
| |