• Makes a vonNeumann neighborhood.

    Area is f(x)=r^2+(r+1)^2 assuming includeSelf is true

    Parameters

    • Optionalradius: number

      Count of how many rings around the center to include. defaults to 1.

    • OptionalincludeSelf: boolean

      Should this include the center pixel? Defaults to false.

    Returns Hitbox

    A hitbox shaped like this under defaults:

     X
    XOX
    X

    if radius is 2 it looks like this:

      X
    XXX
    XXOXX
    XXX
    X