From ea1ac6490a5505400a6ffc1a4715202eb13370a5 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Mon, 26 Feb 2024 10:26:16 -0500 Subject: [PATCH] Fix write: color --- src/painter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/painter.py b/src/painter.py index 2708237..40f6ecf 100644 --- a/src/painter.py +++ b/src/painter.py @@ -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: