diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-26 22:43:49 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-26 22:43:49 -0400 |
commit | 318a81382e074a5897489299a58e029815d23492 (patch) | |
tree | 3eeaecb22895522e168514696a8f0d76c6ab47b5 /gerber/render/svgwrite_backend.py | |
parent | 171876bca01d5c92afd3fa29f2c62c5d50f65511 (diff) | |
parent | c08cdf84bceb43ef452e48396bfbe508f0bdd338 (diff) | |
download | gerbonara-318a81382e074a5897489299a58e029815d23492.tar.gz gerbonara-318a81382e074a5897489299a58e029815d23492.tar.bz2 gerbonara-318a81382e074a5897489299a58e029815d23492.zip |
Merge pull request #5 from hamiltonkibbe/cairo_support
Added basic pycairo rendering
Diffstat (limited to 'gerber/render/svgwrite_backend.py')
-rw-r--r-- | gerber/render/svgwrite_backend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gerber/render/svgwrite_backend.py b/gerber/render/svgwrite_backend.py index d9456a5..2df87b3 100644 --- a/gerber/render/svgwrite_backend.py +++ b/gerber/render/svgwrite_backend.py @@ -148,8 +148,8 @@ class GerberSvgContext(GerberContext): self.dwg.add(c2) self.dwg.add(rect) - def _render_drill(self, primitive, color): - center = map(mul, primitive.position, self.scale) - hit = self.dwg.circle(center=center, r=SCALE * primitive.radius, + def _render_drill(self, circle, color): + center = map(mul, circle.position, self.scale) + hit = self.dwg.circle(center=center, r=SCALE * circle.radius, fill=svg_color(color)) self.dwg.add(hit) |