🟰 Stripe Pattern Generator

📐 工作原理與說明
條紋寬度下限 2(預設 20),用 repeating-linear-gradient(角度deg, …) 迴圈:實線型週期為 2×寬度(前一半色一、後一半色二);虛線型先用 2×寬度雙色條紋,再疊加垂直於條紋方向的 mask 重複漸變,虛線長度與間隔可調(預設 8/4px);雙線型週期恆為 2×寬度,內部兩條細線寬隨寬度等比縮放(約 0.4×寬度、下限 1px),窄寬度下週期不再坍縮;漸變型為色一漸變到色二(寬 寬度)再漸變回色一;多色型按 3×寬度 依次排列顏色1→顏色2→顏色3,週期邊界異色相接
條紋紋理 = repeating-linear-gradient 按固定角度與週期重複雙色條紋;條紋寬度、角度與配色可調並複製 CSS 程式碼,用於包裝、網頁與印刷底紋。

Generate horizontal, vertical or diagonal stripe textures with adjustable width and multi-colour palettes (solid, dashed, double, gradient, multicolour) for packaging, web and print backgrounds; copy the CSS.

📚 深度解析:條紋圖案

💡 常見使用場景

  • 背景紋理。
  • 警示底紋。
  • 裝飾。
45° 條紋

輸入:45°、密 10px、雙色。

處理:linear 平鋪。

輸出:背景程式碼與預覽。

❓ 常見問題(FAQ)

角度任意?
任意角度均可,密度越小越密。
能做雙色嗎?
可設雙色與底色,調對比度即可得到醒目或柔和條紋。
會儲存或上傳我的內容嗎?
結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。

Formula & Standard References

Item Formula / Note Source / Standard
Period the repeating gradient period equals the sum of stop lengths CSS Images Module Level 3
Angle the visible stripe width differs from the set width once angled CSS Images Module Level 3
Moiré thin stripes moire when scaled, keep widths above three pixels Rasterization practice
⚠️ 使用說明與注意事項