Skip to content

Commit f126078

Browse files
Merge pull request #263 from vpython/dot_color3
simplify dot_color
2 parents 0b661e6 + 8b05f7e commit f126078

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

vpython/vpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def Exit():
7777
# attrs are X in {'a': '23X....'}
7878
__attrs = {'pos':'a', 'up':'b', 'color':'c', 'trail_color':'d', # don't use single and double quotes; available: comma, but maybe that would cause trouble
7979
'ambient':'e', 'axis':'f', 'size':'g', 'origin':'h',
80-
'direction':'j', 'linecolor':'k', 'bumpaxis':'l',
80+
'direction':'j', 'linecolor':'k', 'bumpaxis':'l', 'dot_color':'m',
8181
'foreground':'n', 'background':'o', 'ray':'p', 'center':'E', 'forward':'#', 'resizable':'+',
8282

8383
# scalar attributes
@@ -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', 'dot_color':'N'}
112+
'round':'I', 'name':'J', 'offset':'K', 'attach_idx':'L', 'ccw':'M'}
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
@@ -122,7 +122,7 @@ def Exit():
122122
__vecattrs = ['pos', 'up', 'color', 'trail_color', 'axis', 'size', 'origin',
123123
'direction', 'linecolor', 'bumpaxis', 'ambient', 'add_to_trail',
124124
'foreground', 'background', 'ray', 'ambient', 'center', 'forward', 'normal',
125-
'marker_color', 'offset']
125+
'marker_color', 'offset', 'dot_color']
126126

127127
__textattrs = ['text', 'align', 'caption', 'title', 'xtitle', 'ytitle', 'selected', 'label', 'capture', 'name',
128128
'append_to_caption', 'append_to_title', 'bind', 'unbind', 'pause', 'choices']

vpython/vpython_libraries/glowcomm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
// attrs are X in {'a': '23X....'} available: none
368368
var attrs = {'a':'pos', 'b':'up', 'c':'color', 'd':'trail_color', // don't use single and double quotes; available: comma, but maybe that would cause trouble
369369
'e':'ambient', 'f':'axis', 'g':'size', 'h':'origin', 'i':'textcolor',
370-
'j':'direction', 'k':'linecolor', 'l':'bumpaxis',
370+
'j':'direction', 'k':'linecolor', 'l':'bumpaxis', 'm':'dot_color',
371371
'n':'foreground', 'o':'background', 'p':'ray', 'E':'center', '#':'forward', '+':'resizable',
372372

373373
// scalar attributes
@@ -399,7 +399,7 @@
399399
'u':'logx', 'v':'logy', 'w':'dot', 'x':'dot_radius',
400400
'y':'markers', 'z':'legend', 'A':'label','B':'delta', 'C':'marker_color',
401401
'D':'size_units', 'E':'userpan', 'F':'scroll', 'G':'choices', 'H':'depth', 'I':'round',
402-
'J':'name', 'K':'offset', 'L':'attach_idx','M':'ccw', 'N':'dot_color'
402+
'J':'name', 'K':'offset', 'L':'attach_idx','M':'ccw'
403403
}
404404

405405
// methods are X in {'m': '23X....'}

vpython/vpython_libraries/glowcomm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function control_handler(obj) { // button, menu, slider, radio, checkbox, winpu
411411
events.push(evt)
412412
}
413413

414-
// attrs are X in {'a': '23X....'} avaiable: none
414+
// attrs are X in {'a': '23X....'} available: none
415415
var attrs = {'a':'pos', 'b':'up', 'c':'color', 'd':'trail_color', // don't use single and double quotes; available: comma, but maybe that would cause trouble
416416
'e':'ambient', 'f':'axis', 'g':'size', 'h':'origin', 'i':'textcolor',
417417
'j':'direction', 'k':'linecolor', 'l':'bumpaxis', 'm':'dot_color',
@@ -446,7 +446,7 @@ var attrsb = {'a':'userzoom', 'b':'userspin', 'c':'range', 'd':'autoscale', 'e':
446446
'u':'logx', 'v':'logy', 'w':'dot', 'x':'dot_radius',
447447
'y':'markers', 'z':'legend', 'A':'label','B':'delta', 'C':'marker_color',
448448
'D':'size_units', 'E':'userpan', 'F':'scroll', 'G':'choices', 'H':'depth', 'I':'round',
449-
'J':'name', 'K':'offset', 'L':'attach_idx', 'M':'ccw', 'N':'dot_color'
449+
'J':'name', 'K':'offset', 'L':'attach_idx', 'M':'ccw'
450450
}
451451

452452
// methods are X in {'m': '23X....'}

0 commit comments

Comments
 (0)