Replies: 1 comment
-
What errors are you receiving? Your modified P.S. You may be interested in Simple Inkscape Scripting's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm making a script that will hopefully layout a hexagon grid. The code, so far, is provided below.
The three "for" loops are used to create the hexagons. The q, r, s, variables serve as the offset from the origin hexagon at (0, 0, 0). Increasing the range in the loops would create more hexagons but I don't know how to use the transform functions.
Currently, I'm passing a lot of variables into the draw_hex() function. For example, a draw_hex(1, 2, -1, x, y, 30, points) call will eventually offset that specific hexagon along the the q, r, s axis by the double size of the radius multiplied by the number: move up the q-axis by one, move up the r-axis by two. move down the s-axis by one.
I tried this variation to move the hexagon but received errors when trying to run through Inkscape. Any help on correcting the following function would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions