lqu / iching-vis

Modern visualization for I-Ching, or Yi-Jing, the Book of Changes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I-Ching Hexagrams Relation Visualization (易經64卦關係圖)

This interactive tool helps you visualize the relations between the Hexagrams. Play and learn here.

If you are not interested in any special or arbitrary name/meaning assignment, use it as a visualization of a 6D Hamming Space or a 6-cube.

Features

  • Shows Hamming distance between any two Hexagrams -- adjacent nodes d=1, opposite node d=6
  • Supports drag-n-drop of any Hexagram to re-organize graph, and keep the same topology
  • Graph reshapes itself automatically, and keeps all properties
  • Color highlight related Hexagrams (self/selected, adjacent, opposite, reverse)
    • #ffd700 self
    • #059033 adjacent
    • #e2062c opposite, bitwise negation
    • #0067a5 reverse

Demo

demo1080.mp4

Screenshots

Notes

This visualization is to expand the Hamming Space from 3D to six dimensions, from a cube to a 6-cube like this.

image =>> image

In the 6-cube representation, an edge exists if two nodes have an Hamming Distance of one, meaning the binary forms differ at only one digit, e.g. 000000 and 000100.

Mixing Colors

In special cases, the reverse is the same as the opposite or self. The colors will mix, giving purple (red+blue) and dark green (yellow+blue).

rev == neg

(rev == neg) Hexagram Binary Negation Reverse
䷊ 泰 Advance 000111 111000 111000
䷋ 否 Hindrance 111000 000111 000111
䷵ 歸妹 Marrying Maiden 001011 110100 110100
䷴ 漸 Developing Gradually 110100 001011 001011
䷾ 既濟 Already Fulfilled 010101 101010 101010
䷿ 未濟 Not Yet Fulfilled 101010 010101 010101
䷑ 蠱 Remedying 100110 011001 011001
䷐ 隨 Following 011001 100110 100110

rev == self, Palindromes

(rev == self) Hexagram Binary Negation Reverse
䷁ 坤 Responding 000000 111111 000000
䷽ 小過 Little Exceeding 001100 110011 001100
䷜ 坎 Darkness 010010 101101 010010
䷛ 大過 Great Exceeding 011110 100001 011110
䷚ 頤 Nourishing 100001 011110 100001
䷝ 離 Brightness 101101 010010 101101
䷼ 中孚 Innermost Sincerity 110011 001100 110011
䷀ 乾 Initiating 111111 000000 111111

About

Modern visualization for I-Ching, or Yi-Jing, the Book of Changes

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 40.1%Language:Python 38.8%Language:HTML 21.1%