Fix write: color

This commit is contained in:
Ian Jauslin 2024-02-26 10:26:16 -05:00
parent 3d681da551
commit ea1ac6490a
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ class Painter(Widget):
else:
print("bug: unrecognized shape in write: '"+str(self.shape)+"'")
ff.write("%zoom={:1.1f}\n".format(self.base_size/50))
ff.write("%color={:d},{:d},{:d}\n".format(self.color[0],self.color[1],self.color[2]))
ff.write("%color={:1.1f},{:1.1f},{:1.1f}\n".format(self.color[0],self.color[1],self.color[2]))
if self.lattice != None:
ff.write("%lattice="+self.lattice.type+':'+str(self.lattice.spacing)+"\n")
for particle in self.particles: