-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathicepalace.desmos
More file actions
144 lines (112 loc) · 3.23 KB
/
icepalace.desmos
File metadata and controls
144 lines (112 loc) · 3.23 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
settings @{
randomSeed: "795ce8fd8106cdaf61bc82c8ec5b2d7a",
viewport: @{
xmin: -757.8079099235362,
xmax: 815.1372581625045,
ymin: -176.00765586023158,
ymax: 982.2399616137079,
},
}
I_ceCastle(x) =
{
-2.4 <= x <= 0: 3 * tan(x + 1),
x <= -2.4: 3 * sec(-2.4 + 1) ^ 2 * (x - -2.4) + 3 * tan(-2.4 + 1),
x >= 2.4:
-3 * sec(-2.4 + 1) ^ 2 * (x - 2.4) + 3 * tan(-2.4 + 1) * {x >= 2.4},
3 * tan(-x + 1)
} @{ color: "#000000", hidden: true }
f_f(x) = c * I_ceCastle((x - a) / d) + b @{ color: "#2d70b3", hidden: true }
c = [68, 24, 40, 40, 37, 14, 50, 15, 15, 18, 18, 18, 53, 53] @{
color: "#388c46",
hidden: true,
}
polygon((-3000, 2000), (3000, 2000), (3000, -2000), (-3000, -2000)) @{
color: "#000000",
fill: 1,
}
y <= f_f(x) @{
color: C_olor2,
lines: @{ opacity: 0.7, width: 4 },
fill: 2 ^ -99,
}
"Enable next line for actual shapes"
y <= -100 @{ color: "#000000", lines: @{ width: 0 }, fill: 1 }
"We only outline outside... so the next line basically hides the lines that went inside at the last line. But the opacity is 0.4, so the inner parts still kind of glow."
y <= f_f(x) @{ color: "#000000", lines: @{ width: 0 }, fill: 0.55 }
-100 <= y <= f_f(x) @{
color: C_olor,
hidden: true,
lines: @{ width: 0 },
fill: 0.7,
}
a = [0, 0, 0, -83, 83, 0, 0, 0, -41, 41, -116, 116, -78, 78] @{
color: "#6042a6",
hidden: true,
}
d = [10, 74, 66, 6, 6, 55, 32, 15, 5, 5, 5, 5, 6, 6] @{
color: "#000000",
hidden: true,
}
b = [605, 169, 213, 171, 171, 313, 281, 553, 493, 493, 216, 216, 460, 460] @{
color: "#c74440",
hidden: true,
}
I_nt(t, a, b) = a + t(b - a) @{ color: "#000000" }
C_olor =
hsv(
I_nt([0, 1 / length(a) ... 1], 267, 203),
I_nt([0, 1 / length(a) ... 1], 0.5, 0.72) + 0.16,
1
) @{ color: "#c74440" }
C_olor2 =
hsv(
I_nt([0, 1 / length(a) ... 1], 267, 203),
I_nt([0, 1 / length(a) ... 1], 0.5, 0.72) - 0.3,
1
) @{ color: "#6042a6" }
folder "Designer" {
table {
a = [] @{ color: "#c74440", hidden: true }
b = [] @{ color: "#2d70b3", hidden: true }
c = [] @{ color: "#388c46", hidden: true }
d = [] @{ color: "#6042a6", hidden: true }
}
S_tampMid =
a -> join(a, 0), b -> join(b, B), c -> join(c, C), d -> join(d, D) @{
color: "#c74440",
}
S_tampMidPre =
a -> join(0, a), b -> join(B, b), c -> join(C, c), d -> join(D, d) @{
color: "#388c46",
}
S_tampSym =
a -> join(a, [A, -A]),
b -> join(b, [B, B]), c -> join(c, [C, C]), d -> join(d, [D, D]) @{
color: "#c74440",
}
S_tampSymPre =
a -> join([A, -A], a),
b -> join([B, B], b), c -> join([C, C], c), d -> join([D, D], d) @{
color: "#6042a6",
}
"To use designer, enable 3 lines below:"
y = C * I_ceCastle((x - A) / D) + B * {y >= 0} @{
color: "#c74440",
hidden: true,
fill: 1,
}
(A, B) @{ color: "#c74440", hidden: true }
(A + D, B + C) @{ color: "#000000", hidden: true }
C = 68 @{ color: "#c74440", hidden: true, slider: @{ min: 0, max: 205 } }
D = 10 @{ color: "#2d70b3", hidden: true, slider: @{ min: 0, max: 3480 } }
B = 253 @{
color: "#000000",
hidden: true,
slider: @{ min: -67.4, max: 2890 },
}
A = -516 @{
color: "#6042a6",
hidden: true,
slider: @{ min: -1660, max: 1900 },
}
}