Type Here to Get Search Results !

Favicon & logo maker

Favicon & Logo Maker

Favicon & Logo Maker

Controls

Download
body { font-family: Arial, sans-serif; margin: 0; padding: 0; } h1 { text-align: center; } #canvas-container { width: 100%; display: flex; justify-content: center; align-items: center; margin-top: 20px; } #canvas { border: 1px solid #000; } #controls { width: 100%; max-width: 400px; margin: 20px auto; padding: 20px; background-color: #f2f2f2; border-radius: 5px; text-align: center; } label, select, input[type="color"], input[type="range"] { display: block; margin-bottom: 10px; } button, a { display: inline-block; padding: 10px 20px; background-color: #007bff; color: #fff; text-decoration: none; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; } button:hover, a:hover { background-color: #0056b3; } // Get canvas element and context const canvas = document.getElementById("canvas"); const ctx = canvas.getContext("2d"); // Set default values let color = "#000"; let size = 50; let shape = "square"; // Add event listeners for controls document.getElementById("color-input").addEventListener("input", (e) => { color = e.target.value; }); document.getElementById("size-input").addEventListener("input", (e) => { size = e.target.value; }); document.getElementById("shape-select").addEventListener("change", (e) => { shape = e.target.value; }); document.getElementById("clear-button").addEventListener("click", () => { ctx.clearRect(0, 0, canvas.width, canvas.height); }); document.getElementById("download-button").addEventListener("click", () => { const link = document.createElement("a"); link.href = canvas.toDataURL(); link.download = "favicon.png"; link.click(); }); //

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Keyword planner

Keyword planner