Skip to content

Commit a861712

Browse files
committed
Colour() fixes
1 parent a1cb8c2 commit a861712

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Stretch/kiplug/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def To_SVG(self):
111111
r = abs(math.hypot(self.center[0] - self.end[0], self.center[1] - self.end[1]))
112112

113113
parameters = '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
114-
parameters += ';stroke:#' + Colour.Assign(self.layer)
114+
parameters += ';stroke:#' + Colour().Assign(self.layer)
115115
parameters += ';stroke-width:' + self.width + 'mm'
116116
parameters += '" '
117117
parameters += 'cx="' + str(self.center[0] * pxToMM) + '" '

Stretch/kiplug/curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def To_SVG(self, fp = False):
115115

116116

117117
parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
118-
parameters += ';stroke:#' + Colour.Assign(self.layer)
118+
parameters += ';stroke:#' + Colour().Assign(self.layer)
119119
parameters += ';stroke-width:' + self.width + 'mm'
120120
parameters += '" '
121121
parameters += 'd="M ' + str(points[0] * pxToMM) + ',' + str(points[1] * pxToMM) + ' C '

Stretch/kiplug/via.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def To_SVG(self):
185185
parameters += '>'
186186

187187
hole = '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
188-
hole += ';fill:#' + Colour.Assign('Via.Inner')
188+
hole += ';fill:#' + Colour().Assign('Via.Inner')
189189
hole += '" '
190190
hole += 'cx="' + str(float(self.at[0]) * pxToMM) + '" '
191191
hole += 'cy="' + str(float(self.at[1]) * pxToMM) + '" '
@@ -195,7 +195,7 @@ def To_SVG(self):
195195
hole += '/>'
196196

197197
parameters += '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
198-
parameters += ';fill:#' + Colour.Assign('Via.Outer')
198+
parameters += ';fill:#' + Colour().Assign('Via.Outer')
199199
parameters += '" '
200200
parameters += 'cx="' + str(float(self.at[0]) * pxToMM) + '" '
201201
parameters += 'cy="' + str(float(self.at[1]) * pxToMM) + '" '

Stretch/kiplug/zone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def To_SVG(self):
275275
name = 'name="' + self.name + '" '
276276

277277
parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
278-
parameters += ';stroke:#' + Colour.Assign(self.layer)
278+
parameters += ';stroke:#' + Colour().Assign(self.layer)
279279
parameters += ';stroke-width:1mm'
280280
parameters += '" '
281281
parameters += 'd="M ' + xy_text + ' Z" '

0 commit comments

Comments
 (0)