⚫ Dot Pattern Generator
📐 工作原理與說明
點徑下限 2(預設 8)、間距下限 5(預設 30),漸變半徑 = 點徑 ÷ 2;方格排列 = 單層 radial-gradient(點色 半徑, transparent 半徑+1),background-size = 間距 × 間距;錯位排列疊加兩層同參數漸變,第二層 background-position 偏移 (間距 ÷ 2, 間距 ÷ 2);柔邊排列改用 radial-gradient(circle, 點色 半徑, transparent 點徑) 讓邊緣過渡
按固定間距在背景上重複繪製圓點(可用錯位排列形成六角感),點徑、間距與配色可調並複製 CSS 程式碼;用於包裝、網頁底紋與印刷稿。
Create an even or offset dot texture with adjustable dot size, spacing and colour, copyable as CSS code.
📚 深度解析:圓點圖案
💡 常見使用場景
- 做波點背景。
- 紋理裝飾。
- 包裝/海報底紋。
生成 20px 波點
❓ 常見問題(FAQ)
- 點距和清晰度?
- 點距越小越密;過密在螢幕上易糊,以實測為準。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
- 生成的程式碼/圖片能直接用嗎?
- 可直接複製使用,建議粘到專案後在瀏覽器實測微調;本工具只生成不託管。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Pattern tiling | a CSS radial-gradient tiles a single dot seamlessly | CSS Images Module Level 3 |
| Density | the dot radius to spacing ratio sets density and can merge into a solid | Design practice |
| Lossless scaling | the output is a CSS background, not a bitmap: the browser redraws it at the container size, so scaling does not pixelate | CSS Images Module Level 3 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準