hexy

playground

Interface
Interface

Hexy is a generative art playground inspired by and based on Grant Custer’s Hex and Martin Kleppe’s (t,i,x,y)

instructions

Hexy features a 50×50 grid wherein each cell is assigned a numerical value by the provided function in the input box. The function has 5 parameters:

itime value (increments with each cycle)
xcell x-coordinate
ycell y-coordinate
cxcursor x-coordinate
cycursor y-coordinate

Internally, it looks like this:

function getValue ({ i, x, y, cx, cy }) {
const n = // code from the input box is inserted here
return (Math.abs(n) | 0) % 10
}

A cell’s state is determined by the value provided by the function. There are 10 states:

stateglyphdescription
0blankblank cell
1leftborder on the left
2topborder on top
3rightborder on the right
4bottomborder on the bottom
5backslashdiagonal line from top-left to bottom-right corner
6slashdiagonal line from bottom-left to top-right corner
7xboth slashes form an “X”
8boxall borders present
9cratea box with an X
example
(x y) / 4
example
x - y & y