Fix write: color
This commit is contained in:
		| @@ -554,7 +554,7 @@ class Painter(Widget): | |||||||
|         else: |         else: | ||||||
|             print("bug: unrecognized shape in write: '"+str(self.shape)+"'") |             print("bug: unrecognized shape in write: '"+str(self.shape)+"'") | ||||||
|         ff.write("%zoom={:1.1f}\n".format(self.base_size/50)) |         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: |         if self.lattice != None: | ||||||
|             ff.write("%lattice="+self.lattice.type+':'+str(self.lattice.spacing)+"\n") |             ff.write("%lattice="+self.lattice.type+':'+str(self.lattice.spacing)+"\n") | ||||||
|         for particle in self.particles: |         for particle in self.particles: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user