11-11-2020, 09:44 AM
11-11-2020, 09:48 AM
Hi,
Ok perfect so ;) I moved it. Regards, Eric
11-16-2020, 12:35 PM
(This post was last modified: 11-16-2020, 12:35 PM by MatthewStephenson.)
Hi,
Regarding this comment: Quote:Were I naive, I would think that the symbol shown on a site using (show Symbol "disc") would be perfectly aligned with what is shown when one adds a disc to a site during play. This way I could show a gray disc with a black stroke on each site and play with discs with a transparent stroke in order to emulate a circular tile on a circular cell. I have worked around this and scaled the symbol by 0.98 and play with discs whose stroke color is the same as the fill color. But one can still see a slight disalignment. Can this be fixed? The short answer is that the board and the pieces are drawn separately, which can lead to small visual differences like in this case here. The longer answer is that the symbols are drawn as part of the board when it is rendered, and are considered a part of the board design from this point onward, any transformations that are done to the board image when it is drawn, such as scaling the board to fit within the display window, also apply to these images. However, the same transformations are not applied to the disc pieces, instead these pieces are drawn last, and are subject to their own transformation process (scaling, stacking, offsets, rotations, etc.). As a result, it can sometimes be the case that the two pictures will not line up perfectly, due to small rounding errors, floating point imprecision, additional transformations, etc. Cheers, Matthew
11-16-2020, 12:45 PM
Ah. I see. Is there a better way to achieve this visual style, then?
11-16-2020, 01:12 PM
(This post was last modified: 11-16-2020, 01:13 PM by MatthewStephenson.)
Hi,
If the desired effect is for the grey circles on the board to look like they have been filled in with colour, then I would recommend setting the scale of the pieces to 1.0: (piece Scale 1.0) and removing the transparent stroke colour from the pieces. Complete graphics metadata is: (graphics { (player Colour P1 (colour Red)) (player Colour P2 (colour DarkBlue)) (piece Colour P1 fillColour:(colour Red) ) (piece Colour P2 fillColour:(colour DarkBlue) ) (piece Scale 1.0) (show Symbol "disc" Cell (sites Board) fillColour:(colour VeryLightGrey) edgeColour:(colour Black) ) (region Colour (sites Board) (colour 0 0 0 0)) (board Colour InnerEdges (colour 0 0 0 0)) (board Colour OuterEdges (colour 0 0 0 0)) }) |
|