-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsaturation.html
More file actions
400 lines (335 loc) · 11.1 KB
/
saturation.html
File metadata and controls
400 lines (335 loc) · 11.1 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Saturation</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css?family=Cairo');
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: #222;
color: #f2f2f2;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
font-size: 1.2em;
line-height: 1.8;
}
.carousel-container {
width: 80vw; /* Adjust the size as needed */
overflow: hidden;
border: 2px solid #ddd;
border-radius: 10px;
}
.carousel {
display: flex;
transition: transform 0.5s ease-in-out;
}
.carousel-item {
min-width: 100%;
box-sizing: border-box;
}
.carousel-item img {
width: 100%;
height: auto;
display: block;
border-radius: 10px;
}
button {
/* position: relative;
top: 50%;
left: 50%; */
background-color: rgba(0, 0, 0, 0.5);
border: none;
color: white;
padding: 10px;
cursor: pointer;
border-radius: 25%;
margin-bottom: 100px;
}
.title {
font-family: "Cairo";
text-align: center;
color: #FFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
letter-spacing: 1px;
line-height:2;
}
h1 {
background-image: url(./assets/img/saturation/RGBcrowded.png);
background-size: 120%;
background-position: -20px;
color: transparent;
-moz-background-clip: text;
-webkit-background-clip: text;
text-transform: uppercase;
font-size: 120px;
margin: 10px 0;
}
.container {
max-width:70vw;
width: 100%;
padding: 20px;
box-sizing: border-box;
text-align: center;
}
.full-width-image-container {
width: 100vw;
overflow: hidden;
}
.full-width-image {
width: 100%;
height: auto;
}
.content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
/* margin-top: 20px; */
}
.text-section, .image-section {
padding-top: 100px;
width: 45%;
margin: 10px 0;
}
.text-section h2 {
margin-top: 0;
}
.image-section img {
width: 100%;
height: auto;
border-radius: 1px;
transition: transform 0.3s ease;
}
/* .image-section img:hover {
transform: scale(1.05);
} */
.blend-image-container {
position: relative;
width: 100%;
height: auto;
margin: 20px 0;
}
.blend-image {
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
}
.blend-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.5);
transition: background-color 0.3s ease;
}
.color-buttons {
display: flex;
justify-content: center;
margin-top: 10px;
}
.color-buttons .color-button {
width: 50px;
height: 50px;
margin: 0 5px;
cursor: pointer;
border-radius: 5px;
transition: transform 0.3s ease;
}
.color-buttons .color-button:hover {
transform: scale(1.1);
}
.color-button.green {
background-color: green;
}
.color-button.red {
background-color: red;
}
.color-button.blue {
background-color: blue;
}
.color-button.white {
background-color: white;
}
.square-link {
display: block;
width: auto;
height: 50px;
background-color: #4e0295;
text-align: center;
line-height: 50px;
color: #f2f2f2;
font-weight: bold;
text-decoration: none;
border-radius: 5px;
}
.square-link:hover {
background-color: #8651b8;
}
.back-button {
position: fixed;
top: 20px;
left: 20px;
padding: 10px 20px;
font-size: 16px;
color: #f2f2f2;
background-color: #333;
text-decoration: none;
border: 2px solid #d3d3d340;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.back-button:hover {
background-color: #555;
}
.background-images img {
position: absolute;
opacity: 0.3;
z-index: -1;
}
.background-images .img1 {
height:400px;
width: auto;
top: 25%;
left: 8%;
}
.background-images .img2 {
height:200px;
width: auto;
top: 50%;
right: 8%;
}
.background-images .img3 {
height:200px;
width: auto;
top: 70%;
left: 6%;
}
.background-images .img4 {
height:100vh;
width: auto;
top: 5%;
left: 6%;
}
</style>
</head>
<body>
<!-- <a href="index.html" class="back-button">
<svg width="24" height="16" viewBox="0 0 24 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.292893 7.29289C-0.0976311 7.68342 -0.0976311 8.31658 0.292893 8.70711L6.65685 15.0711C7.04738 15.4616 7.68054 15.4616 8.07107 15.0711C8.46159 14.6805 8.46159 14.0474 8.07107 13.6569L2.41421 8L8.07107 2.34315C8.46159 1.95262 8.46159 1.31946 8.07107 0.928932C7.68054 0.538408 7.04738 0.538408 6.65685 0.928932L0.292893 7.29289ZM24 7L1 7V9L24 9V7Z" fill="#E0E0E0"/>
</svg>
</a> -->
<!-- <h2>Saturation</h2> -->
<div class="title">
<h1>Saturation</h1>
</div>
<div class="background-images">
<img src="./assets/img/saturation/bony.png" alt="Background Image 4" class="img4">
<!-- <img src="./assets/img/saturation/image10.jpg" alt="Background Image 1" class="img1">
<img src="./assets/img/saturation/city.png" alt="Background Image 2" class="img2">
<img src="./assets/img/saturation/rainbowSIn.png" alt="Background Image 3" class="img3"> -->
</div>
<div class="full-width-image-container">
<img src="./assets/img/saturation/Iteration1.gif" alt="Artwork gif" class="full-width-image">
<!-- -->
</div>
<div class="container">
<div class="content">
<div class="text-section">
<p>
"Saturation" is an interactive digital art installation that combines creative coding with various tools and technologies, including p5.js, ML5 for skeleton and face tracking, live camera and mic data, Maptastic, Procreate, Photoshop, Premiere Pro, and multiple AI image generation softwares. This piece explores the theme of triggering specific physical reactions, balancing hyper-engagement with overstimulation. It reflects my personal experience in a rapidly advancing world, capturing both amazement and discomfort.
</p>
<a href="https://annual.artdesign.unsw.edu.au/profile/micaela-blank" class="square-link">Annual Website</a>
</div>
<div class="image-section">
<img src="./assets/img/saturation/Iteration2.gif" alt="Artwork Detail 1">
</div>
<div class="image-section">
<img src="./assets/img/saturation/skeleton.gif" alt="Artwork Detail 4">
</div>
<div class="text-section">
<p>
ML5 posenet skeleton tracking and face tracking: ML5 posenet is a library that can be used to track the skeleton and face of a person in real time. I am using ML5 posenet to track the movements audience members, mapping out their hands, elbows, shoulders and faces. If either hand or face touches a coloured circle, the background colour changes to the respective colour.
</p>
</div>
<div class="text-section">
<br/>
<p>These saturated images are created using pure cyan, magenta, and yellow pigments. When these images are overlapped and viewed through contrasting color filters—red, green, and blue—the interaction between the printed colors and the filtered light produces visually striking results.
</p>
<div>TRY IT OUT</div>
<div class="color-buttons">
<div class="color-button green" onclick="changeColor('green')"></div>
<div class="color-button red" onclick="changeColor('red')"></div>
<div class="color-button blue" onclick="changeColor('blue')"></div>
<div class="color-button white" onclick="changeColor('white')"></div>
</div>
</div>
<div class="image-section">
<div class="blend-image-container">
<div class="blend-overlay"></div>
<img src="./assets/img/saturation/RGBcrowded.png" alt="Blend Image" class="blend-image">
</div>
</div>
</div>
</div>
<h2>Process</h2>
<div class="carousel-container">
<div class="carousel">
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/1.jpg" alt="Image 1"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/2.jpg" alt="Image 2"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/3.jpg" alt="Image 3"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/4.jpg" alt="Image 4"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/5.jpg" alt="Image 5"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/6.jpg" alt="Image 6"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/7.jpg" alt="Image 7"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/8.jpg" alt="Image 8"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/9.jpg" alt="Image 9"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/10.jpg" alt="Image 10"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/11.jpg" alt="Image 11"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/12.jpg" alt="Image 12"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/13.jpg" alt="Image 13"></div>
<div class="carousel-item"><img src="./assets/img/saturation/Presentation/14.jpg" alt="Image 14"></div>
</div>
</div>
<div>
<button class="prev" onclick="showPrevImage()">❮</button>
<button class="next" onclick="showNextImage()">❯</button>
</div>
<div class="full-width-image-container">
<img src="./assets/img/saturation/image10.jpg" alt="Main Artwork" class="full-width-image">
<!-- -->
</div>
<script>
function changeColor(color) {
document.querySelector('.blend-overlay').style.backgroundColor = color;
}
let currentIndex = 0;
const carousel = document.querySelector('.carousel');
const items = document.querySelectorAll('.carousel-item');
function showNextImage() {
currentIndex = (currentIndex + 1) % items.length;
updateCarousel();
}
function showPrevImage() {
currentIndex = (currentIndex - 1 + items.length) % items.length;
updateCarousel();
}
function updateCarousel() {
carousel.style.transform = `translateX(-${currentIndex * 100}%)`;
}
</script>
</body>
</html>