You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brush-related functions in croquis.js are working on the [stroke protocol][stroke protocol].
17
+
18
+
stroke protocol consists of the `down` method and the `move` and `up` methods of the drawing context.
19
+
20
+
`down` method means that the stylus pen has started drawing a stroke. it returns the drawing context containing the `move` and `up` methods.
21
+
22
+
`move` means that the stylus pen draws a stroke, and `up` means that the stroke ends.
23
+
24
+
stroke protocol makes it easy to add features such as stabilization without having to modify the drawing code very much.
25
+
26
+
look at the [simple brush example][simple brush] and the [pulled string stabilizer example][pulled string].
27
+
you can see that the code is not different except for [the part injecting the settings][injecting the settings] and [the part drawing the guide][drawing the guide].
0 commit comments