-
Notifications
You must be signed in to change notification settings - Fork 0
/
rm.ksy
81 lines (81 loc) · 1.34 KB
/
rm.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
meta:
id: rm
file-extension: rm
endian: le
seq:
- id: header
type: header
- id: num_layers
type: s4
- id: layers
type: layer
repeat: expr
repeat-expr: num_layers
enums:
color:
0: black
1: gray
2: white
brush:
6: eraser
8: eraserselect
12: paintbrush
13: mechanical
14: pencil
15: ballpoint
16: marker
17: fineliner
18: highlighter
types:
header:
seq:
- id: magic
contents: 'reMarkable .lines file, version='
- id: version
type: str
size: 1
encoding: ASCII
- id: spaces
size: 10
point:
seq:
- id: x
type: f4
- id: y
type: f4
- id: speed
type: f4
- id: direction
type: f4
- id: width
type: f4
- id: pressure
type: f4
line:
seq:
- id: brush_type
type: s4
enum: brush
- id: color
type: s4
enum: color
- id: padding
size: 4
- id: brush_size
type: f4
- id: unknown
type: s4
- id: num_points
type: s4
- id: points
type: point
repeat: expr
repeat-expr: num_points
layer:
seq:
- id: num_lines
type: s4
- id: lines
type: line
repeat: expr
repeat-expr: num_lines