Remove the deprecated fehler module from color; adjust gray values
(from dev 3b91484c1049)
This commit is contained in:
@@ -41,7 +41,7 @@ are regenerated on each release — patches cannot be merged directly.
|
|||||||
Report problems (or send patches) to the author; accepted changes are
|
Report problems (or send patches) to the author; accepted changes are
|
||||||
applied to the development tree and appear in a following snapshot.
|
applied to the development tree and appear in a following snapshot.
|
||||||
|
|
||||||
This snapshot was assembled from development commit `a910e11431d2`.
|
This snapshot was assembled from development commit `3b91484c1049`.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import kutil
|
|||||||
|
|
||||||
class Color(klammer_base.Klammer_base):
|
class Color(klammer_base.Klammer_base):
|
||||||
def __init__(self, K):
|
def __init__(self, K):
|
||||||
kutil.msg()
|
# kutil.msg()
|
||||||
super().__init__(K)
|
super().__init__(K)
|
||||||
match = re.compile(r'([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)', re.S).match(self.rgb)
|
match = re.compile(r'([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)', re.S).match(self.rgb)
|
||||||
if not match:
|
if not match:
|
||||||
raise fehler.KlammertextError(
|
raise Exception(
|
||||||
'Error in color format: "{}". '.format(K.rgb)
|
'Error in color format: "{}". '.format(K.rgb)
|
||||||
+ 'Should be "<r>,<g>,<b>", where the components are [0,1].')
|
+ 'Should be "<r>,<g>,<b>", where the components are [0,1].')
|
||||||
self.r, self.g, self.b = [float(c) for c in match.groups()]
|
self.r, self.g, self.b = [float(c) for c in match.groups()]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
\usepackage[table]{xcolor}
|
\usepackage[table]{xcolor}
|
||||||
|
|
||||||
\definecolor{Gray}{gray}{.85}
|
\definecolor{Gray}{gray}{.7}
|
||||||
\definecolor{LightGray}{gray}{.95}
|
\definecolor{LightGray}{gray}{.9}
|
||||||
\definecolor{White}{gray}{1}
|
\definecolor{White}{gray}{1}
|
||||||
\definecolor{Red}{rgb}{1,0,0}
|
\definecolor{Red}{rgb}{1,0,0}
|
||||||
\definecolor{Darkred}{rgb}{.5,0,0}
|
\definecolor{Darkred}{rgb}{.5,0,0}
|
||||||
|
|||||||
Reference in New Issue
Block a user