🟰 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
⚠️ 使用说明与注意事项