Skip to content

Commit fce018e

Browse files
committed
Fix wrong chessboard generation in gen_pattern tool
1 parent cddf868 commit fce018e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/pattern_tools/gen_pattern.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ def makeCirclesPattern(self):
3838
r = spacing / self.radius_rate
3939
for x in range(1,self.cols+1):
4040
for y in range(1,self.rows+1):
41-
dot = SVG("circle", cx=x * spacing, cy=y * spacing, r=r, fill="black")
41+
dot = SVG("circle", cx=x * spacing, cy=y * spacing, r=r, fill="black", stroke="none")
4242
self.g.append(dot)
4343

4444
def makeACirclesPattern(self):
4545
spacing = self.square_size
4646
r = spacing / self.radius_rate
4747
for i in range(0,self.rows):
4848
for j in range(0,self.cols):
49-
dot = SVG("circle", cx= ((j*2 + i%2)*spacing) + spacing, cy=self.height - (i * spacing + spacing), r=r, fill="black")
49+
dot = SVG("circle", cx= ((j*2 + i%2)*spacing) + spacing, cy=self.height - (i * spacing + spacing), r=r, fill="black", stroke="none")
5050
self.g.append(dot)
5151

5252
def makeCheckerboardPattern(self):
@@ -56,7 +56,7 @@ def makeCheckerboardPattern(self):
5656
for x in range(0,self.cols):
5757
for y in range(0,self.rows):
5858
if x%2 == y%2:
59-
square = SVG("rect", x=x * spacing + xspacing, y=y * spacing + yspacing, width=spacing, height=spacing, fill="black")
59+
square = SVG("rect", x=x * spacing + xspacing, y=y * spacing + yspacing, width=spacing, height=spacing, fill="black", stroke="none")
6060
self.g.append(square)
6161

6262
def save(self):

0 commit comments

Comments
 (0)