Skip to content

Commit ef46656

Browse files
committed
Redo rgbcolors doc
1 parent ccc6848 commit ef46656

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

mathics/builtin/drawing/rgbcolor.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# -*- coding: utf-8 -*-
2+
"""Color Names
3+
4+
Mathics has definitions for the most common color names which can be
5+
used in a graphics or style specification.
6+
"""
7+
28
from mathics.builtin.base import Builtin
39

410
from mathics.core.expression import strip_context
@@ -38,10 +44,10 @@ def __init__(self, *args, **kwargs):
3844
class Black(_ColorObject):
3945
"""
4046
>> Black
41-
= GrayLevel[0]
47+
= RGBColor[0, 0, 0]
4248
"""
4349

44-
rules = {"Black": "GrayLevel[0]"}
50+
rules = {"Black": "RGBColor[0, 0, 0]"}
4551

4652

4753
class Blue(_ColorObject):

0 commit comments

Comments
 (0)