changed font color to ETCHING,

changed font size to depend on tile size
This commit is contained in:
suks.ae 2022-07-31 15:30:01 +02:00 committed by Florian Festi
parent dd8cb71e3a
commit 9cadd12635
1 changed files with 4 additions and 2 deletions

View File

@ -51,12 +51,14 @@ See also LBeam that can serve as compact BurnTest and FlexTest for testing flex
x, s = self.x, self.step x, s = self.x, self.step
t = self.thickness t = self.thickness
fsize = 12.5 * self.x / 100 if self.x < 81 else 10
self.moveTo(t, t) self.moveTo(t, t)
for cnt in range(self.pairs): for cnt in range(self.pairs):
for i in range(4): for i in range(4):
self.text("%.3fmm" % self.burn, x/2, 2*t, align="center") self.text("%.3fmm" % self.burn, x/2, t, fontsize = fsize, align="center", color=Color.ETCHING)
self.edges["f"](x) self.edges["f"](x)
self.corner(90) self.corner(90)
self.burn += s self.burn += s
@ -65,7 +67,7 @@ See also LBeam that can serve as compact BurnTest and FlexTest for testing flex
self.moveTo(x+2*t+self.spacing, -t) self.moveTo(x+2*t+self.spacing, -t)
for i in range(4): for i in range(4):
self.text("%.3fmm" % self.burn, x/2, 2*t, align="center") self.text("%.3fmm" % self.burn, x/2, t, fontsize = fsize, align="center", color=Color.ETCHING)
self.edges["F"](x) self.edges["F"](x)
self.polyline(t, 90, t) self.polyline(t, 90, t)
self.burn += s self.burn += s