Skip to content

Commit 58ae5c9

Browse files
committed
Add more debug output
1 parent 264d9c2 commit 58ae5c9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/DiagramGenerator/Image/Image.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ function (Font $font) {
7575
$font->valign('top');
7676
}
7777
);
78+
79+
// Draw red circle at (10, 10) for verification - after caption
80+
$gdResource = $this->image->getCore();
81+
$red = imagecolorallocate($gdResource, 255, 0, 0);
82+
imagefilledellipse($gdResource, 10, 10, 10, 10, $red);
7883
}
7984

8085
/**
@@ -151,6 +156,11 @@ public function drawBoardWithFigures(Fen $fen, $cellSize, $topPaddingOfCell)
151156
);
152157

153158
$this->drawFigures($fen, $this->config, $topPaddingOfCell);
159+
160+
// Draw red circle at (10, 10) for verification - last thing after all drawing
161+
$gdResource = $this->image->getCore();
162+
$red = imagecolorallocate($gdResource, 255, 0, 0);
163+
imagefilledellipse($gdResource, 10, 10, 10, 10, $red);
154164
}
155165

156166
/**

0 commit comments

Comments
 (0)