8000 fix dot_color · vpython/vpython-jupyter@a9be271 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9be271

Browse files
committed
fix dot_color
1 parent 593ed0e commit a9be271

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

vpython/vpython.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def Exit():
109109
'logx':'u', 'logy':'v', 'dot':'w', 'dot_radius':'x',
110110
'markers':'y', 'legend':'z', 'label':'A', 'delta':'B', 'marker_color':'C',
111111
'size_units':'D', 'userpan':'E', 'scroll':'F', 'choices':'G', 'depth':'H',
112-
'round':'I', 'name':'J', 'offset':'K', 'attach_idx':'L', 'ccw':'M'}
112+
'round':'I', 'name':'J', 'offset':'K', 'attach_idx':'L', 'ccw':'M', 'dot_color':'N'}
113113

114114
# methods are X in {'m': '23X....'}
115115
# pos is normally updated as an attribute, but for interval-based trails, it is updated (multiply) as a method
@@ -2118,6 +2118,7 @@ def setup(self, args):
21182118
self._color = vector(0,0,0)
21192119
self._marker_color = vector(0,0,0)
21202120
self._dot = False
2121+
self._dot_color = vector(0,0,0)
21212122
self._delta = 1
21222123
self._width = 2
21232124
self._radius = 3
@@ -2362,6 +2363,13 @@ def dot_radius(self,val):
23622363
self._dot_radius = val
23632364
self.addattr('dot_radius')
23642365

2366+
@property
2367+
def dot_color(self): return self._dot_color
2368+
@dot_color.setter
2369+
def dot_color(self,val):
2370+
self._dot_color = val
2371+
self.addattr('dot_color')
2372+
23652373
class gdots(gobj):
23662374
def __init__(self, **args):
23672375
args['_objName'] = "gdots"

0 commit comments

Comments
 (0)
0