fix: color_xrange 范围限定 d_max + color_driver + color 范围改为 [0,1] + bug 修复
This commit is contained in:
@@ -212,6 +212,10 @@ def main():
|
||||
"number_of_frames": str(n_frames),
|
||||
"number_of_particles": str(len(atom_ids)),
|
||||
"use_marker": str(use_marker),
|
||||
"display_color": json.dumps(p.get("display_color",
|
||||
{"x":[0,[1.0,0.0,0.0]],"y":[0,[0.0,1.0,0.0]],"z":[0,[0.0,0.0,1.0]],
|
||||
"xy":[0,[1.0,1.0,0.0]],"yz":[0,[0.0,1.0,1.0]],"zx":[0,[1.0,0.0,1.0]],
|
||||
"xyz":[1,[1.0,1.0,1.0]]})),
|
||||
"ball_radius": str(ball_radius),
|
||||
"ball_color_r": str(ball_color[0]),
|
||||
"ball_color_g": str(ball_color[1]),
|
||||
|
||||
Reference in New Issue
Block a user