MCPcopy Create free account
hub / github.com/rawpython/remi / set_fill

Method set_fill

examples/examples_from_contributors/Svg_drawing_app.py:20–27  ·  view source on GitHub ↗

Sets the fill color. Args: color (str): stroke color

(self, color='black')

Source from the content-addressed store, hash-verified

18 self.attributes['stroke-width'] = str(width)
19
20 def set_fill(self, color='black'):
21 """Sets the fill color.
22
23 Args:
24 color (str): stroke color
25 """
26 self.style['fill'] = color
27 self.attributes['fill'] = color
28
29 def add_arrow_coord(self, line, arrow_height, arrow_width, recess):
30 """ Determine the coordinates of an arrow head polygon

Callers 11

default_iconFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
default_iconFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
renderMethod · 0.45
__init__Method · 0.45
box_type_1Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected