• Stars
    star
    203
  • Rank 186,750 (Top 4 %)
  • Language
    TypeScript
  • Created almost 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTML5 drawing tool library

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.

More Repositories

1

activate-power-mode

Activate POWER MODE anywhere
JavaScript
420
star
2

just-news

a userscript project that parses korean news site and then making more readable view
TypeScript
191
star
3

pypy-tutorial-ko

์˜์—ญ์ด ๋‚œ๋ฌดํ•˜๋Š” pypy ํŠœํ† ๋ฆฌ์–ผ ํ•œ๊ตญ์–ด ๋ฒˆ์—ญ. ์˜ค์—ญ์€ ์ด์ŠˆํŠธ๋ž˜์ปค๋กœ ์ œ๋ณดํ•ด์ฃผ์‹œ๊ฑฐ๋‚˜, PR ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค=3
Python
81
star
4

ridi-drm-remover

https://www.bpak.org/blog/2018/04/%EB%A6%AC%EB%94%94%EB%B6%81%EC%8A%A4-%EC%9E%90%EC%8B%A0%EC%9D%B4-%EC%86%8C%EC%9C%A0%ED%95%9C-%EC%B1%85-drm-%ED%95%B4%EC%A0%9C%ED%95%98%EA%B8%B0-feat-%EC%9C%84%ED%97%98%ED%95%9C-%EB%B9%84%EB%B0%80/
JavaScript
65
star
5

vector-devtools

vector formatter for chrome devtools
JavaScript
39
star
6

hwpkit

hwp toolkit
TypeScript
36
star
7

life

my life
27
star
8

join-react-context

join multiple react context into one. support typescript.
TypeScript
25
star
9

makise

pretty JSON schema definition language
JavaScript
24
star
10

text2vdom

jsx์Šค๋Ÿฝ๊ฒŒ ์ƒ๊ธด ๋ฌธ์ž์—ด์„ ํŒŒ์‹ฑํ•˜์—ฌ React ๋…ธ๋“œ๋กœ ๋ณ€ํ™˜ํ•ด์ค๋‹ˆ๋‹ค.
TypeScript
22
star
11

CSON-js

an implementation of Cursive Script Object Notation
JavaScript
20
star
12

psdw

simple javascript photoshop document(psd) writer
JavaScript
17
star
13

kfc-auto-eggtart

์„ค๋ฌธ์กฐ์‚ฌ ๊ท€์ฐฎ์•„
JavaScript
17
star
14

never-cafe-chat

๋„ค์ด๋ฒ„ ์นดํŽ˜ ์ฑ„ํŒ…๋ฐฉ๊ณผ irc ์ฑ„๋„๊ฐ„ ์ค‘๊ณ„ ๋ด‡
JavaScript
16
star
15

node-wintab

node.js wintab addon for getting wacom tablet pressure
C++
13
star
16

tempath

One template, several number input, returns various shape result that consists of plain svg path data!
JavaScript
11
star
17

Squircle

Web IRC client of ozinger server
JavaScript
8
star
18

bencodex

bencodex
TypeScript
8
star
19

toonaverse

๋„ค์ด๋ฒ„ ์›นํˆฐ ๋งˆ๊ฐœ์กฐ ํ”„๋กœ์ ํŠธ
JavaScript
8
star
20

PIKA_V

pikachu beach volleyball
C
8
star
21

yaheui

์•ฝ์†์œผ๋กœ ๋งŒ๋“  ์•„ํฌ ์ธํ„ฐํ”„๋ฆฌํ„ฐ
JavaScript
7
star
22

electrun

browser automation library
JavaScript
7
star
23

adaptive-thresholding

Rust
7
star
24

inline-effects

Components and utility functions for the inline text layout like after effects.
TypeScript
7
star
25

ps-study

๋ฌธ์ œ๋ฅผ ํ’€์–ด๋ด…์‹œ๋‹ค
JavaScript
6
star
26

importmap

import map util
JavaScript
6
star
27

cursive

cson for haxe
Haxe
6
star
28

deno-img

image encoder/decoder library for deno
Shell
6
star
29

lon

loopable notation
JavaScript
5
star
30

zwak

์ค„์ด๊ฑฐ๋‚˜ ๋Š˜๋ ค์ฃผ๋Š” ๋„๊ตฌ
JavaScript
5
star
31

zeplin2json

zeplin project to json
TypeScript
5
star
32

itsuwa

runtime javascript document visualizer for chrome console
JavaScript
5
star
33

particles-on-bezier-curves

http://blog.0xabcdef.com/100126859837
ActionScript
4
star
34

pcg32

TypeScript
4
star
35

makpan

p2p network canvas
JavaScript
4
star
36

connect-react-context

like react-redux, connect react context to props. support typescript.
TypeScript
3
star
37

caragen

์บ๋ฆญํ„ฐ ๋ฌธ์ž์—ด ์ƒ์„ฑ
JavaScript
3
star
38

jcbin

The binary serialization format which is fast, stable and easy to implement.
3
star
39

resume

https://github.com/disjukr/disjukr.github.com/blob/dev/src/pages/resume.mdx
HTML
3
star
40

chamsae

TypeScript
3
star
41

winterboard

Super Experimental Drawing Tool for jQuery.
JavaScript
3
star
42

cellophane.js

experimental project that blends multi-layered canvas by webgl
JavaScript
3
star
43

Tetris

simple cli tetris game written in cpp for study purpose
C++
3
star
44

con

con
2
star
45

choice

choi's programming language
JavaScript
2
star
46

ffffuuuu

The brainfuck interpreter written in Haxe
Haxe
2
star
47

exah

simple irc bot that execute haxe snippet
JavaScript
2
star
48

domisol

do you like flash?
JavaScript
2
star
49

oilmarker

๋ฒกํ„ฐ๋“œ๋กœ์ž‰ํˆด์„ ๋งŒ๋“ค๊ณ  ์‹ถ์–ด์กŒ๋‹ค
JavaScript
2
star
50

konmai

konami e-amusement utils
TypeScript
2
star
51

queen-s-pride

์—ฌ์™•์ด ๊ฐ ์™•๊ตญ์˜ ๊ณต์ฃผ๋“ค์„ ๊ฒฉํŒŒํ•˜๋Š” ์ŠˆํŒ…๊ฒŒ์ž„
ActionScript
2
star
52

haxe-encoding

String encoding library for CJK Haxers.
Haxe
1
star
53

Lisp321

๋ฆฌ์Šคํ”„ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด ๊ตฌํ˜„ ์—ฐ์Šต
ActionScript
1
star
54

another-jison-loader

JavaScript
1
star
55

transnode

TypeScript
1
star
56

babel-plugin-jsx-jsonml

transform jsx into jsonml
JavaScript
1
star
57

ganarize

TypeScript
1
star
58

namecards

Namecard components
TypeScript
1
star
59

input-range-polyfill

range input polyfill for ie9+
JavaScript
1
star
60

mml2tex

convert mathml to tex
XSLT
1
star
61

ajit

aheui implementation that does jit compile, written in rpython
Python
1
star
62

shitty

for shitty work
JavaScript
1
star
63

ClickGame

๊ธ€์ž๋ฅผ ํ•˜๋‚˜๋ผ๋„ ํด๋ฆญํ•˜๊ธฐ๋งŒ ํ•˜๋ฉด ์Šน๋ฆฌํ•˜๋Š” ๊ฒŒ์ž„
ActionScript
1
star
64

misc

arbitrary codes
Rust
1
star
65

jewsgen

jews ํŒŒ์„œ ์ดˆ๋ฒŒ์ƒ์„ฑ๊ธฐ ๋ถ๋งˆํด๋ฆฟ
JavaScript
1
star
66

undo-engine

work in progress
JavaScript
1
star
67

0xabcdef.com

Personal website
TypeScript
1
star
68

60

์ฝ”๋”ฉ ์ „๋ ฅ 60๋ถ„!
HTML
1
star
69

scrdec

<script language="JScript.Encode"> ใ…—^^ใ…—
TypeScript
1
star
70

cursive-loader

cursive loader module for webpack
JavaScript
1
star
71

react-ohlc

TypeScript
1
star
72

applegame-auto

TypeScript
1
star
73

2d

HTML
1
star