disjukr/croquis.js
关于
HTML5 drawing tool library
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文croquis.js
this library provides Photoshop-like brush features.
it also provides functions such as stabilization of brush strokes.
install
npm install @disjukr/croquis-js
# or
yarn add @disjukr/croquis-js
stroke protocol
brush-related functions in croquis.js are working on the stroke protocol.
stroke protocol consists of the down method and the move and up methods of the drawing context.
down method means that the stylus pen has started drawing a stroke. it returns the drawing context containing the move and up methods.
move means that the stylus pen draws a stroke, and up means that the stroke ends.
stroke protocol makes it easy to add features such as stabilization without having to modify the drawing code very much.
look at the simple brush example and the pulled string stabilizer example. you can see that the code is not different except for the part injecting the settings and the part drawing the guide.
license
croquis.js is dual-licensed under Apache 2.0 and MIT terms.
探索相关项目
加载中…