How do a Honeycomb filled by small alvelous

I Try to reproduce an exagone fill by small alveolus. I try in pure CSS but I failed. I look on menu like that and see translation in css. But this is good if u have a small and predictable alveolus.

I try with javascript

<html>
<head>
<style>
    html {
        background-color: yellow;
    }

    #honeypond {
        width: 300px;
        height: 300px; /* Adjust according to the desired height */
        background-color: #FFF;
        position: relative;
        overflow: hidden; /* Clip the contents to the hexagonal shape */
        margin: 0 auto; /* Center the container horizontally */
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    }

        #honeypond::before,
        #honeypond::after {
            content: "";
            display: table;
            clear: both;
        }

    .alveolus {
        background-color: transparent;
        position: absolute;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        cursor: pointer;
    }

        .alveolus:hover {
            border: 1px solid #000000; 
        }
</style>
<script type="text/javascript">
    document.addEventListener("DOMContentLoaded", function () {
        const honeypond = document.getElementById("honeypond");
        const canvas = document.getElementById("honey-canvas");
        const ctx = canvas.getContext("2d");
        const alveolSide = 30;
        const myarr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];

        var maxColumn = honeypond.offsetWidth / alveolSide; var middlecolumn = maxColumn / 2;
        var y = 0; var idxcol = 0; var row = 0;
        myarr.forEach(function (val) {
            var xTopRow = row % 2 === 0 ? (honeypond.offsetWidth - alveolSide) / 2 : honeypond.offsetWidth / 2;//decale pour imbriquer
            var x = idxcol <= middlecolumn ? xTopRow - (middlecolumn - idxcol - 1) * alveolSide : xTopRow + (idxcol - middlecolumn) * alveolSide;

            while (!isVisibleAlveol(ctx, x, y, alveolSide) && y <= honeypond.offsetHeight) {
                if (idxcol < maxColumn) { idxcol++; }
                else {
                    y += alveolSide * 0.75; row++; idxcol = 0;
                    xTopRow = row % 2 === 0 ? (honeypond.offsetWidth - alveolSide) / 2 : honeypond.offsetWidth / 2;
                }
                x = idxcol <= middlecolumn ? xTopRow - (middlecolumn - idxcol - 1) * alveolSide : xTopRow + (idxcol - middlecolumn) * alveolSide;
            }
            if (y <= honeypond.offsetHeight) {
                const Myalveolus = document.createElement("div");
                Myalveolus.classList.add("alveolus");
                Myalveolus.style.backgroundColor = "red";
                Myalveolus.style.width = alveolSide + "px";
                Myalveolus.style.height = alveolSide + "px";
                Myalveolus.style.left = x + "px";
                Myalveolus.style.top = y + "px";
                honeypond.appendChild(Myalveolus);
                idxcol++;
            }
        });
        const Myalveolus = document.createElement("div");
        Myalveolus.classList.add("alveolus");
        Myalveolus.style.backgroundColor = "blue";
        Myalveolus.style.width = alveolSide + "px";
        Myalveolus.style.height = alveolSide + "px";
        Myalveolus.style.left = "135px";
        Myalveolus.style.top =  "0";
        honeypond.appendChild(Myalveolus);
    });

    function isVisibleAlveol(ctx, x, y, alveolSide) {
        var isInsideHexagon = false; var radius = alveolSide / 2 //Math.sqrt(Math.pow(alveolSide / 2, 2) - Math.pow(alveolSide / 4, 2));
        var hexagonVertices = calculateHexagonVertices(x + alveolSide / 2, y + alveolSide / 2, radius);
        hexagonVertices.forEach(function (point) {
            isInsideHexagon = isInsideHexagon || ctx.isPointInPath(point.x, point.y);
        });
        return isInsideHexagon;
    }
    function calculateHexagonVertices(cx, cy, r) {
        const vertices = [];
        for (let i = 0; i < 6; i++) {
            const angle = Math.PI / 6 + (Math.PI / 3 * i); // angle en radian : 30 + 60*i
            const x = cx + r * Math.cos(angle);
            const y = cy + r * Math.sin(angle);
            vertices.push({ x, y });
        }
        return vertices;
    }
</script>
</head>
<body>
<div id="honeypond">
    <canvas id="honey-canvas" width="300" height="300" style="clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);"></canvas>
    
</div>
</body>
</html>

But ctx.isPointInPath(point.x, point.y) return always false… I control my calculateHexagonVertices, coordinates seem good. I put one alveolus in the end (blue) coordinates returned by calculateHexagonVertices are 162.99/22.5 – 150/30 – 137/22.5 – 137/7.5 – 150/0 – 162.99/7.5. Normally all are inside canvas.

What I forget or not understand?
Thanks for your help
I generate

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật