我注意到,所述参数范围(第 10 页) 对于某些颜色模型,xcolor
通常与您实际允许输入而不会收到错误消息的参数范围不符。此外,对于所有“整数”模型,您都可以输入十进制数(HTML 除外),这实际上使它们成为十进制模型。我已将所有这些差异列在下面:
- 恒生银行
- 声明:
- h ∈ [0, 1], h ∈R
- s ∈ [0, 1], s ∈R
- b ∈ [0, 1], b ∈R
- 实际的:
- h∈[-0.16666557312, 1.16666557312],h∈R
- s∈[-163.8399879455, 163.839988708496093749],s∈R
- b∈[-163.8400001525, 1638.400001525878906249],b∈R
- 声明:
- 恒生指数
- 声明:
- H ∈ [0, 360], H ∈R
- s ∈ [0, 1], s ∈R
- b ∈ [0, 1], b ∈R
- 实际的:
- H∈[-59.999397277832031249, 419.999397277832031249],H∈R
- s∈[-163.8399879455, 163.839988708496093749],s∈R
- b∈[-163.8400001525, 1638.400001525878906249],b∈R
- 声明:
- 血红蛋白
- 声明:
- H ∈ [0, 360], H ∈R
- s ∈ [0, 1], s ∈R
- b ∈ [0, 1], b ∈R
- 实际的:
- H∈[-119.998786926269531249,360.999992370605468749],H∈R
- s∈[-163.8399879455, 163.839988708496093749],s∈R
- b∈[-163.8400001525, 1638.400001525878906249],b∈R
- 声明:
- RGB
- 声明:
- R∈[0, 255],R∈是
- G∈[0, 255],G∈是
- B∈[0, 255],B∈是
- 实际的:
- R∈[-0.003883361816406249, 255.003883361816406249],R∈R
- G∈[-0.003883361816406249, 255.003883361816406249],G∈R
- B∈[-0.003883361816406249, 255.003883361816406249],B∈R
- 声明:
- 高速钢
- 声明:
- H ∈ [0, 240], H ∈是
- S ∈ [0, 240], S ∈是
- B∈[0, 240],B∈是
- 实际的:
- H∈[-39.999595642089843749, 279.999595642089843749],H∈R
- S∈[-16383.999992370605468749, 16383.999992370605468749],S∈R
- B∈[-16383.999992370605468749, 16383.999992370605468749],B∈R
- 声明:
- 灰色的
- 声明:
- G∈[0,15],G∈是
- 实际的:
- G∈∅
- 特别提示:请参阅我之前的问题在这个问题上。
- 声明:
- 海浪
- 声明:
- λ ∈ [363, 814], λ ∈R
- 实际的:
- λ ∈ [-16383.999992370605468749, 16383.999992370605468749], λ ∈R
- 特别说明:公平地说,
xcolor
文档确实在第 10 页底部为颜色模型指定了扩大的参数范围。wave
此范围为:λ ∈ [-16383.99998, 16383.99998],这仍然不是实际观察到的。
- 声明:
有人能解释一下这些差异的部分或全部吗?
MWE 如下所示:
\documentclass[a4paper, 12pt]{article}
\usepackage{xcolor}
\begin{document}
\framebox{hsb}
%hsb upper bounds
\textcolor[hsb]{1.16666557312, 163.839988708496093749, 1638.400001525878906249}{text}
%hsb lower bounds
\textcolor[hsb]{-0.16666557312, -163.8399879455, -163.8400001525}{text}
\hspace{0pt}\\
\framebox{Hsb}
%Hsb upper bounds
\textcolor[Hsb]{419.999397277832031249, 163.839988708496093749, 1638.400001525878906249}{text}
%Hsb lower bounds
\textcolor[Hsb]{-59.999397277832031249, -163.8399879455, -163.8400001525}{text}
\hspace{0pt}\\
\framebox{tHsb}
%tHsb upper bounds
\textcolor[tHsb]{360.999992370605468749, 163.839988708496093749, 1638.400001525878906249}{text}
%tHsb lower bounds
\textcolor[tHsb]{-119.998786926269531249, -163.8399879455, -163.8400001525}{text}
\hspace{0pt}\\
\framebox{RGB}
%RGB upper bounds
\textcolor[RGB]{255.003883361816406249, 255.003883361816406249, 255.003883361816406249}{text}
%RGB lower bounds
\textcolor[RGB]{-0.003883361816406249, -0.003883361816406249, -0.003883361816406249}{text}
\hspace{0pt}\\
\framebox{HSB}
%HSB upper bounds
\textcolor[HSB]{279.999595642089843749, 16383.999992370605468749, 16383.999992370605468749}{text}
%HSB lower bounds
\textcolor[HSB]{-39.999595642089843749, -16383.999992370605468749, -16383.999992370605468749}{text}
\hspace{0pt}\\
\framebox{wave}
%wave upper bound
\textcolor[wave]{16383.999992370605468749}{text}
%wave lower bound
\textcolor[wave]{-16383.999992370605468749}{text}
\end{document}