npm install taobi
const { TheArtOfBecomingInvisible } = require("taobi");
`快速使用
$3
`
const { TheArtOfBecomingInvisible } = require("taobi");
const taobi = new TheArtOfBecomingInvisible(new Date());
const data = taobi.getCanvas();
`
#### 指定时间
`
// 公历
const taobi = new TheArtOfBecomingInvisible(new Date());
// 干支历
const taobi = new TheArtOfBecomingInvisible("癸卯甲子甲子甲子",9);
`
PS:若用干支历起局,必须手动指定用局。
#### 转盘/飞盘(未完成)
`
// 默认为转盘
const taobi = new TheArtOfBecomingInvisible(new Date(),null,1 or 2);
`
#### 寄宫
`
// 默认为二盘
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,0);
// 寄二八宫
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,1);
// 寄四维宫/四季宫(未完成)
`
#### 用局
`
//指定用局:阳局[1~9] / 阴局[-1~-9]
const taobi = new TheArtOfBecomingInvisible(new Date(),1);
`
`
//指定三元 [0-2]上中下元
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,null,{element:1});
`
`
//指定用局法 [0-3]均分法/拆补法/茅山法/置闰法(未完成)
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,null,{elements:1});
``#### 方法
* cs(is) 返回天干序号或字符