-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
notes.txt
55 lines (40 loc) · 2 KB
/
notes.txt
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
=============================================================
Hand = Object that stores information about the cursor/touch
Canvas = Client's whole screen (0 to max pixel)
View = Client's whole screen (0.0 to 1.0)
CanvasPosition = Vector representing a location in the canvas (0 to max pixel)
ViewPosition = Vector representing a location in the view (0.0 to 1.0)
Corners = Four view positions (from 0.0 to 1.0) representing the corners of a quadrilateral
Hex = Hex string representing a colour value
Colour = Object containing a hex and list of screens
World = Single screen that fills up the view
Screen = Object representing a positioned colour
Drawn Screen = Screen object representing an instance of a drawn screen
Addressed Screen = Screen object that is stored in a Colour object to represent what's in all screens of that colour
Address = Object containing the number and parent colour of a screen
Pick = Object representing a position in a specific colour. When a pick is used to represent a screen, its 'position' is the corner A
Part = Object representing a part of a screen (Inside, Outside, Edge, Corner)
Route = An object containing the steps we took to pick a screen
Yank = Sometimes, the 'camera' needs to be adjusted to keep things in the same place (eg: the cursor) - I call this process 'yanking' (mainly appears in github issues)
==============================================================
Pick
.screen = The screen object that was picked
.corners = The view corners of the picked screen's parent
.position = The position of the picked screen in its parent
.part = The part of the picked screen that was picked
.parent = The addressed parent screen of the picked screen
.address = The address of the picked screen
.depth = How many layers deep we had to go through to pick the screen
.route = The route we took to get to this pick
=============================================================
Corners
A B
C D
Corner Parts
0 1
2 3
Edge Parts
0
1 2
3
=============================================================