DXF 对象模型/ 颜色
DXF 色彩指数映射.
安装
$ npm i @dxfom/color
使用量
const colorIndex = 1 // 0 - 255
import { DXF_COLOR_RGB } from '@dxfom/color/rgb'
console.log(DXF_COLOR_RGB[colorIndex]) // [255, 0, 0]
import { DXF_COLOR_HEX } from '@dxfom/color/hex'
console.log(DXF_COLOR_HEX[colorIndex]) // "#ff0000"
import { DXF_COLOR_HSL } from '@dxfom/color/hsl'
console.log(DXF_COLOR_HSL[colorIndex]) // [0, 100, 50]
来源
https://gohtx.com/acadcolors.php (中文(简体) )
许可证
GPL 3.0 常规