P5js/generative_logo_hexagons/hexagon_tiles.js
//Check if Hex is a Neighbour of a given HEX
Check if Hex is a Neighbour of a given HEX
Check if Hex is a Neighbour of a given HEX
checkneighbour(x, y) {
    for (var i = 0; i < 6; i++) {
      if (this.neighbours[i] == hexagons[x][y]) {
        this.check = true;
      }
    }
  }
checkneighbour ( x , y ) { for ( var i = 0 ; i < 6 ; i ++ ) { if ( this . neighbours [ i ] == hexagons [ x ] [ y ] ) { this . check = true ; } } }
Check if Hex is a Neighbour of a given HEX
Check if Hex is a Neighbour of a given HEX