It also extends to the Magnetic and Motif sets. Magnetic uses a different shade of red, but it would still appear as white on my Scribe. Today I made the solution more general. I programmed showpiece.php to know the original color for images in certain known sets. So, originalcolor is no longer needed in the query string, and the showpiece.php script can be used with most any set in an Interactive Diagram by appending '/play/pbm/showpiece.php?image=' at the front of a graphDir value. As a demonstration, and to test things until they worked, I did this for every set for Chess.
Additionally, I added the parameters of black and white, which are used to specify a particular color to use for black or white pieces respectively. This allows a single graphDir value to separately define the color to be used for each side. To enable different colored SVG pieces to be used, it also converts an SVG filename beginning with b to one beginning with w. This lets it tell that the piece should be black while enabling it to use the w*.svg file that actually exists. This eliminates the need to create PNG copies of SVG files, because they can now be used directly in Interactive Diagrams for both sides, so long as the showpiece.php script is being used to display and color them. As a demonstration of this, the Chess page has the Alfaerie SVG set. You should notice this is subtly different from the Alfaerie set, which uses PNG files.
It also extends to the Magnetic and Motif sets. Magnetic uses a different shade of red, but it would still appear as white on my Scribe. Today I made the solution more general. I programmed showpiece.php to know the original color for images in certain known sets. So, originalcolor is no longer needed in the query string, and the showpiece.php script can be used with most any set in an Interactive Diagram by appending '/play/pbm/showpiece.php?image=' at the front of a graphDir value. As a demonstration, and to test things until they worked, I did this for every set for Chess.
Additionally, I added the parameters of black and white, which are used to specify a particular color to use for black or white pieces respectively. This allows a single graphDir value to separately define the color to be used for each side. To enable different colored SVG pieces to be used, it also converts an SVG filename beginning with b to one beginning with w. This lets it tell that the piece should be black while enabling it to use the w*.svg file that actually exists. This eliminates the need to create PNG copies of SVG files, because they can now be used directly in Interactive Diagrams for both sides, so long as the showpiece.php script is being used to display and color them. As a demonstration of this, the Chess page has the Alfaerie SVG set. You should notice this is subtly different from the Alfaerie set, which uses PNG files.