From 35409c825b92b0f615653f84f7d3406c3a429b66 Mon Sep 17 00:00:00 2001 From: poni Date: Thu, 3 Dec 2020 20:45:20 +0000 Subject: [PATCH] little adjuts hypercube practical vision --- PRACTICAL_VISION/scripts/hcindex.js | 8 ++++---- PRACTICAL_VISION/style.css | 23 ++++++++++++++++++++--- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/PRACTICAL_VISION/scripts/hcindex.js b/PRACTICAL_VISION/scripts/hcindex.js index 50bdaff..81c996f 100644 --- a/PRACTICAL_VISION/scripts/hcindex.js +++ b/PRACTICAL_VISION/scripts/hcindex.js @@ -22,14 +22,14 @@ let points = []; function setup() { var mq = window.matchMedia( "(max-width: 600px)" ); if (mq.matches) { - var cnv = createCanvas(innerWidth, windowHeight, WEBGL); - cnv.position(innerWidth/15); - cnv.style('z-index','-10') + var cnv = createCanvas(innerWidth/2, windowHeight/2, WEBGL); +cnv.position(innerWidth/4, innerHeight*0.1); + cnv.style('z-index','-10'); } else { var cnv = createCanvas(innerWidth*0.9, windowHeight, WEBGL); cnv.position(innerWidth*1.35); - cnv.style('z-index','-10') + cnv.style('z-index','-10'); } diff --git a/PRACTICAL_VISION/style.css b/PRACTICAL_VISION/style.css index c4fd059..a8ddd6f 100644 --- a/PRACTICAL_VISION/style.css +++ b/PRACTICAL_VISION/style.css @@ -298,9 +298,9 @@ button a{ } @keyframes cycle3 { - 0% { transform: rotate(185deg)} - 50% {transform: rotate(151deg)} - 100% {transform: rotate(185deg);} + 0% { transform: rotate(250deg)} + 50% {transform: rotate(220deg)} + 100% {transform: rotate(250deg);} } @@ -336,7 +336,24 @@ button a{ .left p{ padding: 80% 5%; } + img{ + width: 20%; + margin-left: 30% + } + + #img3{ + margin-left: 40% + } +.container{ + + margin-left: 0 ; + } + + #eccezione{ + width: 70%; + margin-left: 20% ; +} } \ No newline at end of file