How the stars are plotted
The period number enters the centre and flies forward in Luoshu order (centre, NW, W, NE, S, N, SW, E, SE) to give the base chart. The base stars in the sitting and facing palaces each enter the centre in turn. Their direction follows the mountain of the same sub-division (earth, heaven or human yuan) in that star’s own palace: yang mountains fly forward, yin mountains backward. A 5 has no palace of its own, so the sitting or facing mountain itself decides.
Standard and replacement charts
The replacement chart swaps the star by the traditional replacement verse: Zi, Gui, Jia and Shen give 1; Ren, Mao, Yi, Wei and Kun give 2; Qian, Hai, Chen, Xun, Si and Xu give 6; You, Xin, Chou, Gen and Bing give 7; Yin, Wu, Geng and Ding give 9. The direction then follows the replacement star’s own mountain. A leaning direction usually takes the replacement chart, with thresholds that differ between schools. Schools also differ on whether a 5 is replaced; by default 5 is kept and flies by the sitting or facing mountain’s own polarity, or you can replace it with that mountain’s replacement star.
Da Xuan Kong and San Yuan Tian Xing
Da Xuan Kong assigns each of the 24 mountains a star (Jia/Gui/Shen 1, Kun/Ren/Yi 2, Zi/Mao/Wei 3, Xu/Qian/Si 4, Chen/Xun/Hai 6, Gen/Bing/Xin 7, Yin/Geng/Ding 8, Wu/You/Chou 9) that enters the centre. In the upper era (periods 1–4) stars 1–4 fly forward and 6–9 backward; the lower era (6–9) reverses this, and period 5 shows both tracks. San Yuan Tian Xing groups the sitting and facing mountains by Najia trigram and plots earth, heaven and human plates from the lines that differ between each palace and that trigram; all three plates number the Nine Stars — 1 Tan Lang, 2 Ju Men, 3 Lu Cun, 4 Wen Qu, 5 Lian Zhen, 6 Wu Qu, 7 Po Jun, 8 Zuo Fu — which correspond to the Eight Mansions Sheng Qi, Tian Yi, Huo Hai, Liu Sha, Wu Gui, Yan Nian, Jue Ming and Fu Wei.
What red and grey mean
Mountain and facing stars follow the period: the period star is prosperous and the next two are growing, shown in red; the previous one is retreating and treated as neutral; the others are declining, and an untimely 5 Yellow is a sha star, shown in grey. On the San Yuan Tian Xing plates, Tan Lang, Ju Men, Wu Qu and Zuo Fu (1, 2, 6, 8 — Sheng Qi, Tian Yi, Yan Nian, Fu Wei) are red and Lu Cun, Wen Qu, Lian Zhen and Po Jun (3, 4, 5, 7 — Huo Hai, Liu Sha, Wu Gui, Jue Ming) grey. Da Xuan Kong marks only the zero-spirit stars — 1 to 4 in the lower era, 6 to 9 in the upper era — where water is favoured; period 5 is not split and not marked. Colours follow the numbers only: a direction still depends on mountains, water and landforms, and the centre is not a direction. The layout section follows common Shen-school rules: where the timely stars are, the four main layouts, strings of three, sums of ten, Fu Yin and Fan Yin, the Seven Star Robbery (only with double stars at the facing; true Li-palace and false Kan-palace), the main and secondary Castle Gates, when the mountain and facing stars are imprisoned, and star pairs such as 1–4 and 2–5, with landform notes. Period 9 standard charts have no prosperous sitting-and-facing layout. This Tian Xing is a Xuan Kong chart and differs from the Seven Governors star calculations used for date selection in the App.