musomaddie / RunescapeQuestWebsite

0 stars 1 forks source link

How to create hexagons for the grid? #14

Open musomaddie opened 4 years ago

musomaddie commented 4 years ago

To draw hexagons use the Canvas option: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes

musomaddie commented 4 years ago

BUT if I use canvas for drawing the hexagons, I won't be able to apply colors just by using the CSS selectors as the grids are drawn through the canvas and not given class attributes.

So maybe (?) try again with using span without much of a border. (should be possible to set up).

musomaddie commented 4 years ago

SOLUTION: use SVG