Stellix Pixel: Free Online Pixel Art Maker (Draw, Fill, Undo, Download PNG)

Stellix Pixel – Free Online Pixel Art Maker | Coding Stellix

What is Stellix Pixel?

Stellix Pixel is a free pixel art maker that runs in your browser. There is nothing to install and no account to create. You open the page, choose a color and start placing squares on a grid. When you are happy with the result, you download it as a PNG image.

Pixel art is popular with game developers, icon designers, streamers and anyone who enjoys the retro look of old consoles. It is also one of the best ways for a beginner to learn how digital images work, because every picture is just a grid of colored squares.

Features

  • Three grid sizes: 16 x 16, 24 x 24 and 32 x 32
  • Pencil tool for drawing, and drag to draw continuous lines
  • Eraser that returns a square to transparent
  • Fill tool that colors a whole connected area in one tap
  • Color picker tool that copies a color already on your canvas
  • 12 ready-made colors plus a custom color selector
  • Undo for up to 60 steps, and a Clear button
  • PNG download with a transparent background
  • Touch support, so you can draw with a finger on a phone or tablet

How to use it

  1. Choose a grid size. Start with 16 x 16 if you are new to pixel art.
  2. Pick a color from the palette or choose your own.
  3. Select Pencil and draw. Use Fill for large areas and Eraser for fixes.
  4. Press Undo if you make a mistake.
  5. Press Download PNG to save your art.

How it works (for developers)

The artwork is stored as a simple array with one entry per square. Each entry is either a color string or empty. The editor redraws the grid on an HTML canvas every time the array changes. The fill tool uses a stack-based flood fill: it starts at the square you tapped and spreads to every neighbor that has the same original color.

For export, the tool draws a second canvas where each square is 16 pixels wide, so a 16 x 16 drawing saves as a sharp 256 x 256 image. Transparent squares stay transparent, which makes the file ready for use as a game sprite or icon.

Tips for better pixel art

  • Limit your palette. Four to six colors usually look cleaner than twenty.
  • Draw the outline first, then fill the inside.
  • Use a slightly darker shade on one side of a shape to suggest light and depth.
  • Start small. A good 16 x 16 icon teaches you more than a rushed 32 x 32 one.

Frequently asked questions

Is Stellix Pixel free? Yes, it is free and needs no sign-up.

Can I use my art commercially? Yes. What you draw belongs to you.

Will it work on my phone? Yes. The canvas supports touch drawing on modern phones and tablets.

Why is my PNG background transparent? Empty squares are exported as transparent so you can place your art on any background.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Stellix Pixel – Free Online Pixel Art Maker | Coding Stellix</title>
<meta name="description" content="Stellix Pixel is a free pixel art maker by Coding Stellix. Draw on a 16, 24 or 32 grid, fill colors, undo, and download your art as a PNG.">
<style>
:root{--bg:#14101f;--panel:#1e1830;--line:#3a3060;--text:#f3efff;--mute:#a99fcf;--acc:#ffb347;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:light){:root{--bg:#f6f1ff;--panel:#fff;--line:#d9cff5;--text:#221a3d;--mute:#6a5f94;--acc:#d9730d}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Verdana,"Segoe UI",sans-serif;line-height:1.5}
header{max-width:980px;margin:auto;padding:20px 18px 4px}
h1{margin:0;font-size:clamp(26px,5vw,38px)}
header p{margin:4px 0 0;color:var(--mute)}
main{max-width:980px;margin:auto;padding:14px 18px 36px;display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:start}
@media(max-width:760px){main{grid-template-columns:1fr}}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px}
h3{margin:14px 0 8px;font-size:14px;color:var(--mute);font-weight:600}
h3:first-child{margin-top:0}
.tools,.sizes{display:flex;gap:6px;flex-wrap:wrap}
button{font:inherit;font-size:13px;background:transparent;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 11px;cursor:pointer}
button.on{background:var(--acc);color:#1a1000;border-color:var(--acc);font-weight:700}
button.main{background:var(--acc);color:#1a1000;border-color:var(--acc);font-weight:700;width:100%;margin-top:8px}
button:focus-visible,input:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.pal{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.pal b{aspect-ratio:1;border-radius:6px;border:2px solid transparent;cursor:pointer}
.pal b.on{border-color:var(--text)}
input[type=color]{width:100%;height:36px;border:1px solid var(--line);border-radius:8px;background:none;margin-top:8px;padding:2px}
.wrap{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px}
canvas{display:block;width:100%;max-width:560px;margin:auto;aspect-ratio:1;image-rendering:pixelated;touch-action:none;cursor:crosshair;border-radius:6px;background:#fff}
footer{text-align:center;color:var(--mute);font-size:13px;padding-bottom:26px}
</style>
</head>
<body>
<header><h1>Stellix Pixel</h1><p>Draw pixel art on a grid, then download it as a PNG.</p></header>
<main>
<section class="panel" aria-label="Tools">
<h3>Tool</h3>
<div class="tools" id="tools"></div>
<h3>Grid size</h3>
<div class="sizes" id="sizes"></div>
<h3>Colors</h3>
<div class="pal" id="pal"></div>
<input type="color" id="cp" value="#e63946" aria-label="Custom color">
<h3>Actions</h3>
<div class="tools"><button id="undo">Undo</button><button id="clear">Clear</button></div>
<button class="main" id="dl">Download PNG</button>
</section>
<div class="wrap"><canvas id="cv" width="512" height="512" aria-label="Pixel canvas"></canvas></div>
</main>
<footer>Made by Coding Stellix</footer>
<script>
var $=function(i){return document.getElementById(i)},cv=$("cv"),cx=cv.getContext("2d");
var N=16,grid=[],hist=[],tool="Pencil",color="#e63946",down=false;
var cols=["#000000","#ffffff","#e63946","#ff9f1c","#ffd23f","#2ec4b6","#06d6a0","#118ab2","#3a0ca3","#9d4edd","#ff70a6","#8d5524"];
function blank(){grid=[];for(var i=0;i<N*N;i++)grid.push(null)}
function render(){
cx.clearRect(0,0,512,512);var s=512/N;
for(var y=0;y<N;y++)for(var x=0;x<N;x++){var c=grid[y*N+x];
cx.fillStyle=c||((x+y)%2?"#e8e8ee":"#f8f8fc");cx.fillRect(x*s,y*s,s,s)}}
function snap(){hist.push(grid.slice());if(hist.length>60)hist.shift()}
function cell(e){var r=cv.getBoundingClientRect();
return{x:Math.min(N-1,Math.max(0,Math.floor((e.clientX-r.left)/r.width*N))),y:Math.min(N-1,Math.max(0,Math.floor((e.clientY-r.top)/r.height*N)))}}
function fill(x,y,to){var from=grid[y*N+x];if(from===to)return;var st=[[x,y]];
while(st.length){var p=st.pop(),px=p[0],py=p[1];
if(px<0||py<0||px>=N||py>=N||grid[py*N+px]!==from)continue;
grid[py*N+px]=to;st.push([px+1,py],[px-1,py],[px,py+1],[px,py-1])}}
function paint(e){var c=cell(e),i=c.y*N+c.x;
if(tool=="Pencil")grid[i]=color;else if(tool=="Eraser")grid[i]=null;else if(tool=="Picker"){if(grid[i]){setColor(grid[i])}}
render()}
cv.addEventListener("pointerdown",function(e){e.preventDefault();cv.setPointerCapture(e.pointerId);snap();
if(tool=="Fill"){var c=cell(e);fill(c.x,c.y,color);render();return}
down=true;paint(e)});
cv.addEventListener("pointermove",function(e){if(down&&tool!="Fill")paint(e)});
["pointerup","pointercancel"].forEach(function(n){cv.addEventListener(n,function(){down=false})});
function btns(id,list,cb,cur){var box=$(id);box.innerHTML="";list.forEach(function(t){var b=document.createElement("button");b.textContent=t;if(t==cur)b.className="on";
b.onclick=function(){[].forEach.call(box.children,function(k){k.className=""});b.className="on";cb(t)};box.appendChild(b)})}
btns("tools",["Pencil","Eraser","Fill","Picker"],function(t){tool=t},tool);
btns("sizes",[16,24,32],function(t){N=t;hist=[];blank();render()},16);
var pal=$("pal");
function setColor(c){color=c;if(/^#[0-9a-f]{6}$/i.test(c))$("cp").value=c;[].forEach.call(pal.children,function(k){k.className=k.dataset.c==c?"on":""});if(tool=="Eraser"||tool=="Picker"){tool="Pencil";btns("tools",["Pencil","Eraser","Fill","Picker"],function(t){tool=t},tool)}}
cols.forEach(function(c){var b=document.createElement("b");b.style.background=c;b.dataset.c=c;b.setAttribute("role","button");b.setAttribute("aria-label","Color "+c);b.onclick=function(){setColor(c)};pal.appendChild(b)});
$("cp").oninput=function(){setColor(this.value)};
$("undo").onclick=function(){if(hist.length){grid=hist.pop();render()}};
$("clear").onclick=function(){snap();blank();render()};
var dls=null;
if(window.claude&&claude.use)claude.use("downloads").then(function(d){dls=d;if(!d)$("dl").textContent="Right-click canvas to save"},function(){});
$("dl").onclick=function(){var o=document.createElement("canvas");o.width=o.height=N*16;var c=o.getContext("2d");
for(var y=0;y<N;y++)for(var x=0;x<N;x++){var v=grid[y*N+x];if(v){c.fillStyle=v;c.fillRect(x*16,y*16,16,16)}}
o.toBlob(function(bl){if(dls){dls.save({filename:"stellix-pixel-art.png",data:bl}).catch(function(){})}else{var a=document.createElement("a");a.download="stellix-pixel-art.png";a.href=URL.createObjectURL(bl);a.click()}})};
setColor(color);blank();render();
</script>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *

SHARE:-

Trending Post

Latest Post