levskaya/eschersketch
关于
A drawing program for exploring symmetrical designs
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Eschersketch
This is a program built to experiment with pattern design in the classical wallpaper groups and rosette point groups. It allows the user to draw and layout repeating patterns in real-time.
This version has been completely overhauled from an earlier simplistic prototype. It works reasonably well with mobile and desktop browsers. Undo/Redo and a basic set of vector graphic primitives are now supported.
It features PNG and SVG export. It also exports high-res PNG "tiles" that are suitable for use with tools like Photoshop pattern fill, graphics textures, or upload to services such as Spoonflower and Contrado to be used in printed patterns.
Local Install / Build Setup
Built with modern ES modules, Vite, esbuild, and Vue. Running locally requires Node.js and npm:
# install dependencies
npm install
# start local dev server with instant HMR
npm run dev
# build optimized production bundle
npm run build
# preview production build locally
npm run preview
Code Comments
Currently Vue handles all DOM-related UI elements, it does not however handle the canvas drawing and state management, as that's not really what it's built to do. I may consider making canvas management a bit more Vue-ish to exploit its reactivity tools, but will likely separately organize, simplify and generalize drawing state management.
Almost all actions are routed through a simple global state store and event bus, it has not yet been ported into Vuex but this would not be difficult.
External Libs/Tools
- The color panel code is derived from Vue-Color. It's been tweaked to fix a touch-event handling bug and to modify style defaults.
- Canvas touch-handling is handled by Hammer.js
- Uses eligrey's [FileSaver.js][fs] and [canvas-toBlob.js][ctb] polyfills to support saving files.
- Uses a modified canvas2svg to export to SVG.
- Also using vue-markdown-loader for handling inline written content.
- icomoon was used to help with icon generation.
探索相关项目
加载中…