Skip to content

Reverse the Y-axis for hexagonal coordinates #2

Description

@vkryukov

Right now, the hexagonal coordinates' Y-axis increases from bottom to top, so visually on the screen, (0, 0) is below (0, 1). This is the opposite of the SVG coordinate system. Therefore, the coordinate conversion in Draw.elm requires offsetY to include the full length of the board, which will be different for different games and therefore not scaleable.

We need to reverse this axis, which will require fixing the formulas in Draw.elm and one-time adjustment of explicit coordinates used for empty board drawing etc. in GipfBoard.elm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions