Skip to content
SamZebradoPublic

About

Sewing game...

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

56 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

叠绣绣 DeeSewSew

浏览器里的小小数字刺绣工作室。 A tiny embroidery studio in your browser.

移动穿着线的针,慢慢绣出自己的作品。 Move a threaded needle and make something at your own pace.

当前功能 / Features

  • 正反面真实针线拓扑,无需每针翻面。 True front/back needle and thread topology, without mandatory flipping.
  • 松线随针下垂与摆动;针尖先穿布,针眼携线跟随,再从新针孔向旧针孔逐段收紧。 Loose thread follows with sag and inertia; the tip enters first, the eye carries thread through, and tension travels from the new hole toward the old hole.
  • 可停在任意角度的绣盘旋转、可关闭的行针动画和自定义颜色。 Rotation that stops at any angle, optional stitch animation, and custom colors.
  • 简体中文/英文、本机保存、撤销/重做、JSON 导入导出,以及小花、郁金香与爱心、小叶片、双樱桃四种可选引导。 Simplified Chinese/English, local saving, undo/redo, JSON import/export, and optional flower, tulip/heart, leaf and cherries guides.
  • 独立线段组、剪线,以及正面郁金香/背面爱心的双面引导。 Independent thread runs, cutting, and a front-tulip/back-heart guide.
  • 正面、背面或正反面并排的干净 PNG 图片导出。 Clean front, back, or side-by-side PNG image export.
  • 可选的实验性笔压预览,默认关闭,仅改变正在移动的松线展示。 An optional Experimental pen-pressure preview, off by default, affects only transient moving loose-thread presentation.
  • 独立的实验性 3D Lab:球面放线与可逆支撑展示,不是任意网格或完整丝线物理模拟。 A separate Experimental 3D Lab for sphere-surface thread and reversible support display, not arbitrary meshes or full thread physics.

作品不上传到服务器。本机存储不可用时仍可导出当前内存中的作品。 Artwork is not uploaded. If local storage is unavailable, the current in-memory artwork can still be exported.

操作 / Interaction

  • 移动鼠标定位,点击落针;针尖对应针孔,线连在针眼上。可见面的针移出绣盘仍可见,但不能在布外落针。 Move to position the needle and click to puncture. The tip marks the hole; thread attaches to the eye. A directly visible needle follows outside the hoop without making outside punctures.
  • 针藏在另一面时,选择出针点即可继续,不会伪造可见针或背面线段。 When the needle is hidden, choose its emergence point to continue; no visible needle or reverse thread is fabricated.
  • Shift 拖动、边框拖动或触屏双指拖动可旋转;自动旋转可随时停止,也可回正面/背面。 Shift-drag, rim drag, or two-finger touchscreen drag rotates the hoop. Stop automatic rotation anywhere or return to either face.
  • 点击“剪线”,或在绣盘内按住 Ctrl 点击并松手,结束当前线;拖动或取消不会剪线。换色也会结束旧线,同色可以开始另一根线,不连接旧针孔。 Choose “Cut thread”, or Ctrl-click and release inside the hoop, to end the active thread. Dragging or cancelling does not cut. Changing color also ends the old thread; separate runs may share a color without connecting old holes.
  • 触屏按下、拖动定位、松手落针。方向键旋转,Home/End 回正面/背面;Cmd/Ctrl+Z 撤销,加 Shift 重做。 On touch, press, drag, and release to puncture. Arrow keys rotate; Home/End select front/back. Cmd/Ctrl+Z undoes; add Shift to redo.
  • 过于倾斜的角度仅供查看。关闭动画或启用系统减少动态效果会立即落定,保留实时松线跟随。 Shallow angles are inspect-only. Motion off or system Reduce Motion settles immediately while retaining live thread following.

导入导出 / Import & export

导出下载包含规范拓扑的版本化 JSON。导入先校验整个文件,再确认替换非空作品;错误文件不会清空当前作品。浏览器存储不是永久备份,请保留导出副本。 Export downloads versioned JSON with canonical topology. Import validates the whole file before confirming replacement of nonempty work; invalid files do not clear the current piece. Browser storage is not a permanent archive: keep exported backups.

选择“正面 PNG”“背面 PNG”或“双面 PNG”,可下载不含工具栏、针、引导点和未完成松线的作品图片。每面为 1024 × 1024 像素;双面图左边是正面、右边是背面,包含真实起止锚点,使用固定柔和光照和中性背景,全程在本机生成。 Choose “Front PNG”, “Back PNG” or “Both PNG” to download artwork without toolbars, needle, guide targets or unfinished loose thread. Each face is 1024 × 1024 pixels; the pair places FRONT on the left and BACK on the right, including canonical start/end anchors, with fixed soft lighting and a neutral background. Images are generated locally.

PNG 是展示图片,不能代替可继续编辑的 JSON 备份。下载去向由浏览器决定;失败时作品保持不变,可以重试。 PNG is a flattened image, not a replacement for an editable JSON backup. Your browser controls the download destination; failure leaves the artwork unchanged and permits retry.

“外观”中的三种光照仅改变本机屏幕展示,不改变针线。PNG 始终使用标准柔和日光,不随屏幕光照变化。 The three lighting choices under “Appearance” affect only the local screen, not stitches. PNG exports always use standardized soft daylight, independent of screen lighting.

小花引导 / Flower guide

默认自由刺绣。点击“绣一朵小花”,按下一个高亮点落针,在正面绣出四瓣小花。空白作品需 41 次落针;从背面持针开始则为 40 次。引导使用真实针线逻辑和一种选定颜色,不凭空添加首段线。撤销回退进度,刷新继续,退出后线段保留为普通作品。 Free stitching is the default. Choose “Stitch a flower” and follow the next highlighted point to make a four-petal flower on the front. A blank piece takes 41 punctures, or 40 when starting with the needle on the back. It uses the real needle/thread model and one selected color, never inventing a first segment. Undo rewinds progress, reload resumes, and exiting keeps ordinary editable stitches.

背面是诚实的针线连接,不是爱心图案。完成后可主动翻面看看,不会强制旋转。已有作品会保留,包括旧针孔到新图案的真实连接;想要独立的小花,可先导出旧作品,再清空布料。 The back contains honest thread routing, not a heart motif. Completion invites you to inspect it without forcing a flip. Existing artwork is retained, including the real connection from the old hole to the new pattern. For a standalone flower, export your previous work before clearing the fabric.

AI 刺绣大挑战 / AI Embroidery Challenge

把网页交给能操作浏览器的 AI,让它用正常界面绣,看看 FRONT 和 BACK 能不能都收拾得像样。人也能参加。没奖品,不做排行榜。想分享就贴两面截图和提示词,不用录视频。规则和提示词 · 游戏。

Give a browser agent the game and let it stitch through the normal controls. See how FRONT and BACK turn out. Humans can try too. No prizes or leaderboard. Sharing is optional; both sides and the prompt are enough. No video required. Rules and prompt · Game.

郁金香与爱心 / Tulip & heart

这个独立引导先绣正面小郁金香,再提示翻到背面绣爱心。每条线按“亮点起线 → 下一亮点落针 → 剪线”完成,共 24 根线、48 次穿刺。起线从对面穿出,不造连接线;另一面只留下很小的同色起止锚点,不是完整打结模拟。退出、重载和撤销/重做保留真实作品。 This separate guide makes a small front tulip, then asks you to turn over for the heart. Each stroke follows “start at the highlight → puncture the next highlight → cut”: 24 runs and 48 punctures. A new thread emerges from the opposite face without a connecting segment. Tiny same-color start/end anchors remain on that face; they are not a full knot simulation. Exiting, reload and undo/redo preserve the real artwork.

本地开发 / Development

安装 Node.js 和 npm 后运行: With Node.js and npm installed:

npm install
npm run dev
npm test
npm run test:e2e
npm run test:offline
npm run typecheck
npm run build
npm run preview

开发地址通常为 http://127.0.0.1:5173/DeeSewSew/,生产输出位于 dist/。运行时仅使用浏览器 API,无第三方运行时依赖。 The development URL is usually http://127.0.0.1:5173/DeeSewSew/; production output is in dist/. Runtime code uses browser APIs without third-party runtime dependencies.

GitHub Pages

静态 PWA 的资源及离线缓存范围为 /DeeSewSew/。本地候选不代表公开发布;发布须经过测试、指定审查和精确提交授权,并验证线上部署。 The static PWA uses /DeeSewSew/ for assets and offline scope. A local candidate is not a public release: publication requires tests, designated review, exact-commit authorization, and deployment verification.

当前限制与证据边界 / Limitations & evidence

  • 当前是表面拓扑与轻量松线近似,不是体积线材或材料物理模拟。实验性笔压预览默认关闭,仅在笔接触时改变临时松线展示;真实触控笔手感尚未验证。完整力度/深度/材料/触控笔系统,以及任意深度穿线、劈线、结、陀螺仪和自由三轴相机仍延期。 This is surface topology with a lightweight loose-thread approximation, not volumetric thread or material physics. The optional Experimental pen-pressure preview is off by default and changes only transient loose-thread presentation during pen contact; physical stylus feel remains unvalidated. Full force, depth, material and stylus systems, arbitrary-depth routing, splitting, knots, gyroscope and free three-axis cameras remain deferred.
  • 平针/回针是简化路径外观,不自动执行完整传统针法。旧版作品仅恢复历史正面外观,不虚构背面。 Running/Back are simplified routing styles, not automated traditional sequences. Legacy pieces preserve their historical front appearance without inventing reverse topology.
  • 画布落针尚无完整键盘替代操作。无账号、云同步、图库或分析追踪。 Canvas puncturing lacks full keyboard parity. There are no accounts, cloud sync, galleries, or analytics.
  • 浏览器鼠标/触摸事件及手机/平板尺寸测试不等于真实设备手感验证。生产录屏与数学测试分别记录,不能互相替代。 Browser mouse/touch and phone/tablet viewport tests are not physical-device feel evidence. Production recordings and mathematical tests are reported separately and do not replace one another.

许可 / License

采用 Apache License 2.0,详见 LICENSE。布料、木环与图标为项目自有程序绘制,不加载远程纹理、网页字体或第三方图标包。 Apache License 2.0; see LICENSE. Fabric, hoop, and icons are project-owned procedural graphics, without remote textures, web fonts, or third-party icon packs.

About

Sewing game...

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages