[英]What color format is pdf-lib using?
What color format is pdf-lib using? pdf-lib使用什么颜色格式? Writing
rgb(156, 132, 678)
or cmyk(157, 145, 124, 135)
throws an error where all number values must be between 0 and 1.写入
rgb(156, 132, 678)
或cmyk(157, 145, 124, 135)
会引发错误,其中所有数字值都必须介于 0 和 1 之间。
How do I convert standard rgb, ie.我如何转换标准 rgb,即。 0-256 to whatever format this is?
0-256 到什么格式?
The docs give me the TS definitions but no explainations.文档给了我 TS 定义,但没有解释。
Documentation gives an example like this color: rgb(0.95, 0.1, 0.1)
.文档给出了这样一个
color: rgb(0.95, 0.1, 0.1)
的例子color: rgb(0.95, 0.1, 0.1)
。 Dividing by 255 is likely the solution.除以 255 可能是解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.