1
0
mirror of synced 2024-05-28 21:33:21 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
paula
956ea2eb62 cultura visual y nuevos medios, pec2 2023-11-02 12:50:15 +01:00
paula
eda58e7562 cultura visual y nuevos medios, pec2 2023-11-02 12:44:41 +01:00
3 changed files with 219 additions and 0 deletions

40
VISUAL_FEEL/animate.py Normal file
View File

@ -0,0 +1,40 @@
import time
import random
from random import randrange
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(projection='3d')
# Make the X, Y meshgrid.
xs = np.linspace(-1, 1, 50)
ys = np.linspace(-1, 1, 50)
X, Y = np.meshgrid(xs, ys)
# Set the z axis limits, so they aren't recalculated each frame.
ax.set_zlim(-1, 1)
# Begin plotting.
wframe = None
tstart = time.time()
import random
rand_list=[]
n=50
for i in range(n):
rand_list.append(random.randint(3,9))
print(rand_list)
rand_list.sort()
for phi in range(0,50):
#for phi in np.linspace(0, 180. / np.pi, 100):
# If a line collection is already remove it before drawing.
if wframe:
wframe.remove()
# Generate data.
Z = np.cos(2 * np.pi * X + phi) * (1 - np.hypot(X, Y))
# Plot the new wireframe and pause briefly before continuing.
wframe = ax.plot_wireframe(X, Y, Z, rstride=2, cstride=2)
plt.pause(.08)
print('Average FPS: %f' % (100 / (time.time() - tstart)))

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

View File

@ -0,0 +1,179 @@
<!DOCTYPE html>
<html>
<head>
<title>VISUAL FEELINGS</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
height: 100%;
color: #777;
line-height: 1.8;
}
input[type=button],
input[type=submit] {
background-color: #ffb3b3;
border: none;
color: #fff;
padding: 15px 30px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
}
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* First image (Logo. Full height) */
.bgimg-1 {
background-image: url('');
min-height: 100%;
}
/* Second image (Portfolio) */
.bgimg-2 {
background-image: url("");
min-height: 400px;
}
/* Third image (Contact) */
.bgimg-3 {
background-image: url("https://gitlab.com/terceranexus6/thebrokenpencil/-/raw/master/images/video_2023-11-02_12-41-43.gif");
min-height: 400px;
}
.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1600px) {
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: scroll;
min-height: 400px;
}
}
</style>
</head>
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar" id="myNavbar">
<a class="w3-bar-item w3-button w3-hover-black w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
<i class="fa fa-bars"></i>
</a>
<a href="#home" class="w3-bar-item w3-button">HOME</a>
<a href="#about" class="w3-bar-item w3-button w3-hide-small"> ABOUT</a>
<a href="#participate" class="w3-bar-item w3-button w3-hide-small"> PARTICIPATE</a>
<a href="#" class="w3-bar-item w3-button w3-hide-small w3-right w3-hover-red">
<i class="fa fa-search"></i>
</a>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
<a href="#about" class="w3-bar-item w3-button" onclick="toggleFunction()">ABOUT</a>
<a href="#participate" class="w3-bar-item w3-button" onclick="toggleFunction()"> PARTICIPATE</a>
<a href="#" class="w3-bar-item w3-button">SEARCH</a>
</div>
</div>
<!-- First Parallax Image with Logo Text -->
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">
<div class="w3-display-middle" style="white-space:nowrap;">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity">EMOTIONS WIREFRAME</span>
</div>
</div>
<!-- Container (About Section) -->
<div class="w3-content w3-container w3-padding-64" id="about">
<h3 class="w3-center">ABOUT THE PROJECT</h3>
<p class="w3-center"><em>Let's visualize out feelings</em></p>
<p>We have created a fictional "personal" website/blog, and our fictional character is a hobby photographer. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<!-- Third Parallax Image with Portfolio Text -->
<div class="bgimg-3 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-xxlarge w3-text-black w3-wide">BE PART OF THE WIREFRAME</span>
</div>
</div>
<!-- Container (Contact Section) -->
<div class="w3-content w3-container w3-padding-64" id="participate">
<h3 class="w3-center">HOW DO YOU FEEL?</h3>
<p class="w3-center"><em>from 0 (saddest) to 50 (happiest), select your happiness level today</em></p>
<div class="w3-row w3-padding-32 w3-section">
<div class="w3-col m4 w3-container">
<img src="https://gitlab.com/terceranexus6/thebrokenpencil/-/raw/master/images/video_2023-11-02_12-41-43.gif" class="w3-image w3-round" style="width:100%">
</div>
<div class="w3-col m8 w3-panel">
<p>This will be represented in tomorrow's data:</p>
<form action="/thank_you.html">
<label for="quantity">Quantity (between 0 and 50):</label>
<input type="number" min="0" max="50">
<br><br>
<input type="submit">
</form>
</div>
</div>
</div>
<!-- Footer -->
<footer class="w3-center w3-black w3-padding-64 w3-opacity w3-hover-opacity-off">
<a href="#home" class="w3-button w3-light-grey"><i class="fa fa-arrow-up w3-margin-right"></i>To the top</a>
<p>Powered by <a href="https://git.sr.ht/~alienagain/art-research/tree/master/item/VISUAL_FEEL" title="repository" target="_blank" class="w3-hover-text-green">Free Software</a>, for Name of the Museum</p>
</footer>
<script>
// Modal Image Gallery
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
var captionText = document.getElementById("caption");
captionText.innerHTML = element.alt;
}
// Change style of navbar on scroll
window.onscroll = function() {myFunction()};
function myFunction() {
var navbar = document.getElementById("myNavbar");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white";
} else {
navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", "");
}
}
// Used to toggle the menu on small screens when clicking on the menu button
function toggleFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</body>
</html>