
# Convex castle images

#define EVEN
cut=54,72,126,144
#enddef

#define ODD
cut=72,108,126,180
#enddef

#define CASTLE_MASKS NAME
[mask]
    name={NAME}-ne
    image=mask-castle-ne.png
    shift=18,36
    {EVEN}
[/mask]

[mask]
    name={NAME}-e
    image=mask-castle-e.png
    shift=36,24
    {ODD}
[/mask]

[mask]
    name={NAME}-se
    image=mask-castle-se.png
    shift=18,24
    {EVEN}
[/mask]

[mask]
    name={NAME}-sw
    image=mask-castle-sw.png
    shift=36,24
    {ODD}
[/mask]

[mask]
    name={NAME}-w
    image=mask-castle-w.png
    shift=18,24
    {EVEN}
[/mask]

[mask]
    name={NAME}-nw
    image=mask-castle-nw.png
    shift=36,36
    {ODD}
[/mask]
#enddef

{CASTLE_MASKS castle-convex}
{CASTLE_MASKS castle-concave}
{CASTLE_MASKS wall-convex}
{CASTLE_MASKS wall-concave}

{CASTLE_MASKS castle-wall-convex}
{CASTLE_MASKS castle-wall-concave}
{CASTLE_MASKS castle-wall-cw}
{CASTLE_MASKS castle-wall-ccw}

