Skip to content

Commit 8665da0

Browse files
committed
Two more color examples
1 parent ef46656 commit 8665da0

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

mathics/builtin/drawing/rgbcolor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class Magenta(_ColorObject):
105105

106106

107107
class LightBlue(_ColorObject):
108+
"""
109+
>> Graphics[{LightBlue, EdgeForm[Black], Disk[]}]
110+
= -Graphics-
111+
112+
>> Plot[Sin[x], {x, 0, 2 Pi}, Background -> LightBlue]
113+
= -Graphics-
114+
"""
108115
text_name = "light blue"
109116
rules = {"LightBlue": "RGBColor[0.87, 0.94, 1]"}
110117

mathics/builtin/graphics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,6 +3142,12 @@ class Darker(Builtin):
31423142
<dd>is equivalent to 'Darker[$c$, 1/3]'.
31433143
</dl>
31443144
3145+
>> Graphics[{Darker[Red], Disk[]}]
3146+
= -Graphics-
3147+
3148+
>> Graphics3D[{Darker[Green], Sphere[]}]
3149+
= -Graphics3D-
3150+
31453151
>> Graphics[Table[{Darker[Yellow, x], Disk[{12x, 0}]}, {x, 0, 1, 1/6}]]
31463152
= -Graphics-
31473153
"""

0 commit comments

Comments
 (0)