/
Settings.coffee
118 lines (107 loc) · 3.53 KB
/
Settings.coffee
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# all colors (except color_output) found at colorlovers.com
define -> Settings = {
graphics:
fps: 35 # mind physics.fps
updating: off
draw_shadows: off
draw_borders: off
game:
creation_offset: 50
min_joining_force: 100
naub:
size: 28
mass: 5
friction: 0.5
elasticity: 1
min_join_len: 1.2 # times size
max_join_len: 2 # times size
physics:
center_join:
restLength: 0
stiffness: 2
damping: 5
fps: 35 # bug: slows down if high cpu usage
calming_const: 0.5
join_length: 3.0 # margin between joined naubs (n* avg size)
spring_force: 0.6
damping: 0.3
canvas:
scale: 1 # not yet implemented
width: 600#800
height: 400#480
events: [
{ name: 'init', from: 'none', to: 'stopped'}
# { name: 'unset', from: 'stopped', to: 'none' } # TODO REMOVE THIS
{ name: 'play', from: 'stopped', to: 'playing'}
{ name: 'play', from: 'paused', to: 'playing'}
{ name: 'pause', from: 'playing', to: 'paused' }
{ name: 'stop', from: 'playing', to: 'stopped'}
{ name: 'stop', from: 'paused', to: 'stopped'}
]
layer_events: [
{ name: 'play', from: '*', to: 'playing'}
{ name: 'pause', from: 'playing', to: 'paused' }
{ name: 'stop', from: 'playing', to: 'stopped'}
{ name: 'stop', from: 'paused', to: 'stopped'}
]
colors:
#please sort colors by
# red
# green
# blue
# yellow
# misc...
# a palett must have at least 6 colors
output: [
# [RRR, GGG, BBB, , name, is_background, is_joincolor ]
[229, 53, 23, 1, "red" ]
[151, 190, 13, 1, "green" ]
[ 0, 139, 208, 1, "blue" ]
[255, 204, 0, 1, "yellow" ]
[226, 0, 122, 1, "pink" ]
[100, 31, 128, 1, "purple" ]
[ 41, 14, 3, 1, "tell me" ] # (brown)
]
high_contrast: [
[255, 0, 0, 1, "hcred" ]
[ 0, 224, 0, 1, "hcgreen" ]
[ 0, 128, 224, 1, "hcblue" ]
[255, 255, 0, 1, "hcyellow" ]
[ 0, 0, 0, 1, "hcblack" ]
[128, 0, 128, 1, "hcpurple" ]
]
normal_colors: [
[255, 0, 0, 1, "red" ]
[255, 153, 0, 1, "Vitamin C" ]
[ 0, 153, 204, 1, "Office Blue" ]
[ 0, 204, 0, 1, "Astroturf" ]
[255, 255, 0, 1, "Yellow" ]
]
cuddle_bunny: [ # http://www.colourlovers.com/palette/124912/Cuddle_Bunny
[174, 49, 45, 1, "cuddling red" ]
[ 75, 136, 95, 1, "cuddling green" ]
[ 73, 37, 13, 1, "midnight fudge" ]
[173, 165, 64, 1, "cuddling yellow" ]
[202, 202, 182, 1, "ill beige" ]
]
'70': [ # http://www.colourlovers.com/palette/1712615/70
[191, 73, 73, 1]
[166, 30, 30, 1]
[ 38, 110, 128, 1]
[255, 232, 222, 1]
[ 41, 14, 3, 1, "tell me"]
]
lip: [
[125, 97, 83, 1]
[147, 208, 189, 1]
[ 82, 195, 193, 1]
[246, 153, 167, 1]
[198, 190, 99, 1]
]
# http://www.colourlovers.com/palette/1763674/The_Hearth#
# http://www.colourlovers.com/palette/1763676/DeepSeaNEONS
# http://www.colourlovers.com/palette/1763669/neon_spring
# http://www.colourlovers.com/palette/373610/mellon_ball_surprise
# http://www.colourlovers.com/palette/1473/Ocean_Five
# http://www.colourlovers.com/palette/705921/Spring_Birds
}