三元九星sān yuán jiǔ xīng
Feng shui
The nine stars (1 White to 9 Purple) each have a home palace: 1 White north, 2 Black southwest, 3 Jade east ... 5 Yellow in the centre. Each year the year's star enters the centre and the others fly through the nine palaces in the book's order; months work the same way.
Source
一白居坎二黑居坤三碧居震四緑居巽五黄居中六白居乾七赤居兌八白居艮九紫居離
欽定協紀辨方書 · 卷八·義例六·三元九星
Example chart
乙卯 甲申 癸巳 丁巳
The year, month, day and hour pillars, in that order.