Skip to content

Commit

Permalink
Merge pull request #167 from lykahb/main
Browse files Browse the repository at this point in the history
Fix values of paths for clamshell lines
  • Loading branch information
anoek authored Jun 26, 2024
2 parents 89d4554 + 66616e9 commit da617b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Goban/themes/rendered_stones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ export default function (THEMES: ThemesInterface) {

// draw clamshell lines
const n_lines = 8 + (Math.abs(s) % 8);
let path = "";

const lines_g = document.createElementNS("http://www.w3.org/2000/svg", "g");
const lines_radius = radius * 0.85;
Expand All @@ -649,6 +648,7 @@ export default function (THEMES: ThemesInterface) {

let unit_x = shift + 1 / n_lines - 0.5;
while (unit_x < 0.5 * 0.8) {
let path = "";
const x_increment =
seedRandomFloat(s, 1 / n_lines / 2, 1 / n_lines) * compactness;
unit_x += x_increment;
Expand Down

0 comments on commit da617b1

Please sign in to comment.