MCPcopy Create free account
hub / github.com/PageBot/PageBot / stroke

Method stroke

Lib/pagebot/contexts/svgcontext/svgcontext.py:308–317  ·  view source on GitHub ↗
(self, c, strokeWidth=None)

Source from the content-addressed store, hash-verified

306 cmykFill = fill
307
308 def stroke(self, c, strokeWidth=None):
309
310 if c is noColor:
311 self._svgStroke = 'none'
312 else:
313 c = color(c)
314 r, g, b = c.rgb
315 self._svgStroke = self.b.rgb(100*r, 100*g, 100*b, '%')
316
317 self._strokeWidth = upt(strokeWidth or pt(1))
318
319 setStrokeColor = stroke
320 cmykStroke = stroke

Callers 15

__init__Method · 0.95
drawRegistrationMarkFunction · 0.45
drawCropMarksFunction · 0.45
drawArrowFunction · 0.45
buildMethod · 0.45
buildFrameMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildElementMethod · 0.45
buildMethod · 0.45

Calls 3

colorFunction · 0.90
uptFunction · 0.90
ptFunction · 0.90

Tested by

no test coverage detected