Refactored bobbin lace
@ -4,7 +4,7 @@
|
||||
<id>fablabchemnitz.de.lace_circular_ground</id>
|
||||
<param name="description" type="description" appearance="header" xml:space="preserve">Wrap lace pattern found in template file around a circle.</param>
|
||||
<param name="warning" type="description" xml:space="preserve">Note: Drawing can become quite large when "Number of copies around circle" is small or "Diameter" of inside circle is large.</param>
|
||||
<param name="file" type="path" gui-text="Template file name (full path):" mode="file" filetypes="txt"/>
|
||||
<param name="file" type="path" gui-text="Template file name (full path):" mode="file" filetypes="txt">./templates/</param>
|
||||
<param name="filllabel" type="description" appearance="header">Grid description</param>
|
||||
<hbox indent="1">
|
||||
<param name="angle" type="float" precision="1" min="30" max="89" gui-text="Angle (degrees):">45.0</param>
|
||||
@ -51,4 +51,4 @@
|
||||
<script>
|
||||
<command location="inx" interpreter="python">fablabchemnitz_lace_circular_ground.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
||||
</inkscape-extension>
|
@ -431,4 +431,5 @@ class CircularGround(inkex.Effect):
|
||||
## Draw everything
|
||||
self.draw(points,line=lambda a: self.line(a))
|
||||
|
||||
CircularGround().run()
|
||||
if __name__ == '__main__':
|
||||
CircularGround().run()
|
@ -104,5 +104,5 @@ class LaceGrid(inkex.Effect):
|
||||
self.options.dotcolor = self.options.dotcolor.to_rgb()
|
||||
self.draw()
|
||||
|
||||
# Create effect instance and apply it.
|
||||
LaceGrid().run()
|
||||
if __name__ == '__main__':
|
||||
LaceGrid().run()
|
@ -3,7 +3,7 @@
|
||||
<name>Ground from Template</name>
|
||||
<id>fablabchemnitz.de.lace_ground</id>
|
||||
<param name="description" type="description" appearance="header" xml:space="preserve">Fill a rectangular patch with a lace ground pattern from selected template file.</param>
|
||||
<param name="file" type="path" gui-text="Template file name (full path):" mode="file" filetypes="txt"/>
|
||||
<param name="file" type="path" gui-text="Template file name (full path):" mode="file" filetypes="txt">./templates/</param>
|
||||
<param name="filllabel" type="description" appearance="header">Grid description</param>
|
||||
<hbox indent="1">
|
||||
<param name="angle" type="float" precision="1" min="30" max="89" gui-text="Angle (degrees):">45.0</param>
|
||||
@ -57,4 +57,4 @@
|
||||
<script>
|
||||
<command location="inx" interpreter="python">fablabchemnitz_lace_ground.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
||||
</inkscape-extension>
|
@ -168,5 +168,5 @@ class LaceGround(inkex.Effect):
|
||||
# For now, assume style is Checker but could change in future
|
||||
self.draw(result['data'],result['rowCount'],result['colCount'])
|
||||
|
||||
# Create effect instance and apply it.
|
||||
LaceGround().run()
|
||||
if __name__ == '__main__':
|
||||
LaceGround().run()
|
@ -180,6 +180,5 @@ class PolarGrid(inkex.Effect):
|
||||
for i in range(2, len(self.generatedCircles), 4):
|
||||
self.removeDots(i, 0, self.options.dots)
|
||||
|
||||
# Create effect instance and apply it.
|
||||
if __name__ == '__main__':
|
||||
PolarGrid().run()
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |