/cubeviz

Primary LanguageRustMIT LicenseMIT

cubeviz

A Cube Vizualizer.

Usage

$ cubeviz <input> > <out.svg>

$ cubeviz < samples/face_with_side.dot | convert -size 200x200 - out.png  # svg -> png

Examples

A Face 3x3

Face {
  R O O
  W Y Y
  G B .
}

A Face with its side

Face {
    G G B
  W R O O R
  B W Y Y O
  G G B . Y
    O G R
}

A whole cube (net style)

Cube {
    ...
    ...
    ...

    ... ... ... ...
    RRG RGG OOO BBB
    RRR GGG OOO BBB

    WWW
    WWW
    WWW
}

Colors

  • W, White
  • Y, Yello
  • R, Red
  • O, Orange
  • B, Blue
  • G, Green
  • ., Masked cube