🖼️ Pixel Art Generator

Draw pixel art on a grid (4–24 cells per side) using one of six fixed colors, then export it as character art or CSS.

📐 計算公式 / 原理
網格尺寸限 4-24,越界報錯;8×8 時載入預置笑臉點陣圖(置 1 處填 #92400E),其餘尺寸全空;畫布單元格 32px、間距 2px、列數 = 網格尺寸;字元畫預覽:有色的格記 ■、空白記 ·;點選按當前顏色上色,擦除模式恢復 #e2e8f0
Grid size ranges from 4 to 24 and colors come from a fixed set of six. Clicking a cell writes the current color into a 2-D array, which feeds the character-art preview and the CSS box-shadow export. The page does not read images or perform automatic pixelation or color quantization.

📚 深度解析:Pixel Art Generator

💡 常見使用場景

  • 網格手繪畫素畫。
  • 頭像/圖示復古。
  • 遊戲素材。
在網格上繪製畫素畫

輸入:選 4–24 網格尺寸與 6 色調色盤,點選格子繪製或擦除。

處理:即時生成 ■ / · 字元畫與 CSS 畫素塊預覽。

輸出:字元畫可複製為 .txt,純本地繪製不儲存。

❓ 常見問題(FAQ)

色越多越真?
是,但失畫素味;按風格權衡色數。
塊大小怎麼選?
塊越大越畫素化;小圖用小塊更細膩,大圖可用大塊出風格。
會儲存或上傳我的內容嗎?
結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。

Formula & Standard References

Item Formula / Note Source / Standard
Grid and painting grid 4–24; a click writes the current color into a 2-D array, erase writes #e2e8f0 This page
Character art / CSS filled cells become ■ and empty ones ·; CSS reproduces each filled cell as a 16px-step box-shadow This page's export
Preset pattern only 8×8 loads the 48-cell smiley; other sizes start blank This page
⚠️ 使用說明與注意事項