Hexagonal grid debugger

from Red Blob Games
01 Dec 2018

x = {{mouseover.x}} y = {{mouseover.y}}
fractional hex = q:{{mouseoverFractionalHex.q.toFixed(3)}} r:{{mouseoverFractionalHex.r.toFixed(3)}} s:{{mouseoverFractionalHex.s.toFixed(3)}} ( x:{{mouseoverFractionalHex.q.toFixed(3)}} y:{{mouseoverFractionalHex.s.toFixed(3)}} z:{{mouseoverFractionalHex.r.toFixed(3)}} )
rounded hex = q:{{mouseoverHex.q}} r:{{mouseoverHex.r}} s:{{mouseoverHex.s}} ( x:{{mouseoverHex.q}} y:{{mouseoverHex.s}} z:{{mouseoverHex.r}} )
differences = q-r:{{(mouseoverFractionalHex.q-mouseoverFractionalHex.r).toFixed(3)}} r-s:{{(mouseoverFractionalHex.r-mouseoverFractionalHex.s).toFixed(3)}} s-q:{{(mouseoverFractionalHex.s-mouseoverFractionalHex.q).toFixed(3)}}

orientation =

Email me , or tweet @redblobgames, or comment: