|
|
commit 303e8de48397909751b32b0754257192f89ef7b0
Author: Matthias Melcher <github@matthiasm.com>
AuthorDate: Sat Jan 29 00:25:24 2022 +0100
Commit: Matthias Melcher <github@matthiasm.com>
CommitDate: Sat Jan 29 00:25:34 2022 +0100
More natural shading for Checkers pieces.
test/checkers_pieces.fl | 4 +--
test/pixmaps/black_checker.png | Bin 6645 -> 6118 bytes
test/pixmaps/black_checker_king.png | Bin 7744 -> 7322 bytes
test/pixmaps/checker.svg | 53 +++++++++++++++++++-----------------
test/pixmaps/white_checker.png | Bin 6490 -> 6536 bytes
test/pixmaps/white_checker_king.png | Bin 7593 -> 7548 bytes
6 files changed, 30 insertions(+), 27 deletions(-)
diff --git test/checkers_pieces.fl test/checkers_pieces.fl
index d91bdf1..8cd09e9 100644
--- test/checkers_pieces.fl
+++ test/checkers_pieces.fl
@@ -17,13 +17,13 @@ comment {//
//
// https://www.fltk.org/bugs.php
//
-} {selected in_source in_header
+} {in_source in_header
}
data pixmaps_black_checker_png {public local filename {pixmaps/black_checker.png}
}
-data pixmaps_white_checker_png {public local filename {pixmaps/white_checker.png}
+data pixmaps_white_checker_png {selected public local filename {pixmaps/white_checker.png}
}
data pixmaps_black_checker_king_png {public local filename {pixmaps/black_checker_king.png}
diff --git test/pixmaps/black_checker.png test/pixmaps/black_checker.png
index 363e557..6a1aa4c 100644
Binary files test/pixmaps/black_checker.png and test/pixmaps/black_checker.png differ
diff --git test/pixmaps/black_checker_king.png test/pixmaps/black_checker_king.png
index 523283a..b6e2df3 100644
Binary files test/pixmaps/black_checker_king.png and test/pixmaps/black_checker_king.png differ
diff --git test/pixmaps/checker.svg test/pixmaps/checker.svg
index 730385e..b8aa158 100644
--- test/pixmaps/checker.svg
+++ test/pixmaps/checker.svg
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="checker.svg"
- inkscape:version="1.0beta2 (2b71d25, 2019-12-03)"
+ inkscape:version="1.1.1 (c3084ef, 2021-09-22)"
id="svg2339"
version="1.1"
viewBox="0 0 400 400"
height="400"
- width="400">
+ width="400"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
<title
id="title2902">Checkers</title>
<defs
@@ -159,10 +159,10 @@
inkscape:collect="always" />
<linearGradient
gradientUnits="userSpaceOnUse"
- y2="156.31206"
- x2="247.49542"
- y1="264.68085"
- x1="126.97269"
+ y2="137.02127"
+ x2="132.8855"
+ y1="274.32623"
+ x1="270.5188"
id="linearGradient3866"
xlink:href="#Black"
inkscape:collect="always" />
@@ -199,18 +199,18 @@
inkscape:collect="always" />
<linearGradient
gradientUnits="userSpaceOnUse"
- y2="104.68085"
- x2="238.41739"
- y1="297.58865"
- x1="167.82375"
+ y2="133.04964"
+ x2="134.5876"
+ y1="274.32623"
+ x1="257.46915"
id="linearGradient3905"
xlink:href="#linearGradient3913"
inkscape:collect="always" />
<filter
height="1.1867704"
- y="-0.093385214"
+ y="-0.093385219"
width="1.1867704"
- x="-0.093385214"
+ x="-0.093385219"
id="filter3915"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
@@ -231,8 +231,8 @@
inkscape:snap-smooth-nodes="false"
inkscape:snap-grids="false"
inkscape:window-maximized="0"
- inkscape:window-y="38"
- inkscape:window-x="199"
+ inkscape:window-y="66"
+ inkscape:window-x="112"
inkscape:window-height="1037"
inkscape:window-width="1448"
units="px"
@@ -241,14 +241,15 @@
inkscape:current-layer="layer2"
inkscape:document-units="px"
inkscape:cy="200"
- inkscape:cx="200"
+ inkscape:cx="171.34752"
inkscape:zoom="1.7625"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
- id="base">
+ id="base"
+ inkscape:pagecheckerboard="0">
<sodipodi:guide
id="guide3037"
orientation="1,0"
@@ -373,7 +374,9 @@
x="57"
y="57"
inkscape:export-xdpi="33.391304"
- inkscape:export-ydpi="33.391304">
+ inkscape:export-ydpi="33.391304"
+ inkscape:label="ExportPng112x112"
+ inkscape:export-filename="/Users/matt/dev/fltk-1.4.git/test/pixmaps/white_checker.png">
<desc
id="desc60">Select this rectangle and export it as a PNG with 112x112 pixels in size, creating the correct image for the checkers game.</desc>
</rect>
diff --git test/pixmaps/white_checker.png test/pixmaps/white_checker.png
index 2f654d3..635de54 100644
Binary files test/pixmaps/white_checker.png and test/pixmaps/white_checker.png differ
diff --git test/pixmaps/white_checker_king.png test/pixmaps/white_checker_king.png
index 4446786..841a2bb 100644
Binary files test/pixmaps/white_checker_king.png and test/pixmaps/white_checker_king.png differ
[ Direct Link to Message ] | |
|
| |