diff options
-rw-r--r-- | assets/css/home.css | 45 | ||||
-rw-r--r-- | assets/css/home.css.map | 2 | ||||
-rw-r--r-- | assets/scss/home.scss | 64 | ||||
-rw-r--r-- | ps/gfx/sine.js | 92 | ||||
-rw-r--r-- | ps/index.fr.html | 3 |
5 files changed, 170 insertions, 36 deletions
diff --git a/assets/css/home.css b/assets/css/home.css index 9b0d5f3..bf9ee02 100644 --- a/assets/css/home.css +++ b/assets/css/home.css @@ -312,23 +312,26 @@ body > footer { transform: rotate(-4deg); margin: 0 -5vw 0 -2vw; left: 0; } - - .media #gfx h3 { - transform: rotate(4deg) translateX(1vw); - font-size: 5rem; } - - .media #gfx:hover { - background: rgba(191, 138, 112, 0.9); - transform: rotate(0); - margin: 0; } - .media #gfx:hover p, .media #gfx:hover h4 { - display: none; } - - .media #gfx:hover h3 { - transform: rotate(0) translateX(0) translateY(-4rem); } - - .media #gfx:hover + #txt { - margin-left: -3vw; } + .media #gfx h3 { + transform: rotate(4deg) translateX(1vw); + font-size: 5rem; } + .media #gfx svg { + position: absolute; + top: 0; + left: 0; + opacity: 0.1; } + .media #gfx:hover { + background: rgba(191, 138, 112, 0.9); + transform: rotate(0); + margin: 0; } + .media #gfx:hover p, .media #gfx:hover h4 { + display: none; } + .media #gfx:hover h3 { + transform: rotate(0) translateX(0) translateY(-4rem); } + .media #gfx:hover svg { + opacity: 0.9; } + .media #gfx:hover + #txt { + margin-left: -3vw; } .media #txt { background: rgba(166, 191, 112, 0.7); @@ -447,5 +450,13 @@ body > footer { body > main { background: url(../img/logo-ps.svg) center calc(92% - 50vh)/contain no-repeat fixed; } } +.sinewave.w0 { + fill: rgba(240, 40, 142, 0.5); } +.sinewave.w1 { + fill: rgba(140, 140, 42, 0.5); } +.sinewave.w2 { + fill: rgba(240, 142, 1, 0.5); } +.sinewave.w3 { + fill: rgba(0, 110, 12, 0.5); } /*# sourceMappingURL=home.css.map */ diff --git a/assets/css/home.css.map b/assets/css/home.css.map index 485a38c..d53b27a 100644 --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B;IACpC,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,IAAI;;EAER,cAAe;IAClB,SAAS,EAAE,6BAA6B;;EAErC,oBAAqB;IACxB,SAAS,EAAE,yCAAyC;IACpD,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,IAAI;IAEf,sBAAE;MACE,OAAO,EAAE,KAAK;MACd,MAAM,EAAE,IAAI;MACZ,KAAK,EAAE,IAAI;;EAIZ,MAAO;IACV,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,IAAI;;EAER,mBAAoB;IACvB,KAAK,EAAE,OAAqB;IAC5B,SAAS,EAAE,GAAG;IACd,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;;EAEP,kBAAmB;IACtB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,CAAC;;EAEN,qBAAsB;IACzB,KAAK,EAAE,OAAqB;IAC5B,eAAe,EAAE,IAAI;;EAGlB,qBAAsB;IAC1B,kDAAkD;IACjD,SAAS,EAAE,6BAA6B;;EAErC,kBAAmB;IACvB,yCAAyC;IACxC,SAAS,EAAE,sBAAsB;;EAE9B,mBAAoB;IACxB,sDAAsD;IACrD,SAAS,EAAE,oCAAoC;AAKhD,4CAA6C;EAEzC,kBAAmB;IACtB,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,GAAG;;EAGP,WAAY;IACf,UAAU,EAAE,uEAAyE;AAMlF,YAAK;EACD,IAAI,EAAE,uBAAuB;AAEjC,YAAK;EACD,IAAI,EAAE,uBAAuB;AAEjC,YAAK;EACD,IAAI,EAAE,sBAAsB;AAEhC,YAAK;EACD,IAAI,EAAE,qBAAqB", "sources": ["../scss/home.scss"], "names": [], "file": "home.css" diff --git a/assets/scss/home.scss b/assets/scss/home.scss index 7a1a0e3..d20d5a3 100644 --- a/assets/scss/home.scss +++ b/assets/scss/home.scss @@ -425,25 +425,40 @@ body > footer { transform: rotate(-4deg); margin: 0 -5vw 0 -2vw; left: 0; - } - .media #gfx h3 { - transform: rotate(4deg) translateX(1vw); - font-size: 5rem; - } - .media #gfx:hover { - background: rgba(191, 138, 112, 0.9); - transform: rotate(0); - margin: 0; - p, h4 { - display: none; + h3 { + transform: rotate(4deg) translateX(1vw); + font-size: 5rem; + } + + svg { + position: absolute; + top: 0; + left: 0; + opacity: 0.1; + } + + &:hover { + background: rgba(191, 138, 112, 0.9); + transform: rotate(0); + margin: 0; + + p, h4 { + display: none; + } + + h3 { + transform: rotate(0) translateX(0) translateY(-4rem); + } + + svg { + opacity: 0.9; + } + + + #txt { + margin-left: -3vw; + } } - } - .media #gfx:hover h3 { - transform: rotate(0) translateX(0) translateY(-4rem); - } - .media #gfx:hover + #txt { - margin-left: -3vw; } .media #txt { @@ -579,3 +594,18 @@ body > footer { } } + +.sinewave{ + &.w0 { + fill: rgba(240, 40, 142, 0.5); + } + &.w1 { + fill: rgba(140, 140, 42, 0.5); + } + &.w2 { + fill: rgba(240, 142, 1, 0.5); + } + &.w3 { + fill: rgba(0, 110, 12, 0.5); + } +} diff --git a/ps/gfx/sine.js b/ps/gfx/sine.js new file mode 100644 index 0000000..b1d14a4 --- /dev/null +++ b/ps/gfx/sine.js @@ -0,0 +1,92 @@ +(function(d3) { + + const increase = ((Math.PI * 2) / 360); + const margin = { top:10, right:10, bottom:10, left:10 } + const view = d3.select('#gfx') + const bbox = view.node().getBoundingClientRect() + const width = Math.max(bbox.width, bbox.height) + const height = Math.max(bbox.width, bbox.height) + + var w = width - margin.right - margin.left + var h = height - margin.top - margin.bottom + + const samples = Math.PI * 3 + var data = generateSineData(samples) + + console.log(data) + + var xScale = d3.scaleLinear().domain([0, samples-1]).range([0, w]) + var yScale = d3.scaleLinear().domain([-1, 1]).range([h, 0]) + + const initialX = xScale(12); + const initialY = yScale(15); + + // define the area + var sine = d3.area() + .curve(d3.curveMonotoneX) + .x(function(d, i) { return xScale(i); }) + .y0(height) + .y1(function(d) { return yScale(d.y || d); }); + + const svg = view.append('svg') + .attr('width', width + margin.left + margin.right) + .attr('height', height + margin.top + margin.bottom) + .style('background-color', 'black') + .append('g') + .attr('transform',function(){ + var x1 = bbox.x + bbox.width / 2 + var y1 = bbox.y + bbox.height / 2 + console.log(`rotate(90, ${x1}, ${y1}) translate(${margin.left}, ${margin.top})`) + return `translate(${margin.left - x1}, ${margin.top -y1}) rotate(90, ${x1}, ${y1})` + }) + +// svg.append("defs").append("clipPath").attr("id", "clip") +// .append("rect").attr("width", width).attr("height", height) +// .append("rect").attr("width", h).attr("height", w) + + const graphContainer = svg.append("g") +// .attr('transform', `translate(-${initialX}, -${initialY})`); + + const state = { + initialX, + initialY, + graphContainer, + time: 0 + }; + + function generateSineData(samples) { + return d3.range(0, 100).map(function(i) { return Math.sin(i) }) + } + + var drawSineWave = function(state) { + const freqs = [ 84, 34, 71, 125 ] + + svg + .attr('width', function() { return bbox.width }) + .attr('height', function() {return bbox.height }) + + d3.selectAll('.sinewave').remove() + + freqs.forEach(function(f, i) { + var data = d3.range(0, 54) + .map(x => x * 10 / f) + .map((x) => { return { x: x, y: - Math.sin(x + i - state.time)} }) + + state.graphContainer.append('path') + .datum(data) + .attr('class', 'sinewave w' + i) + .attr('d', sine) + }) + } + + var drawGraph = function(state) { + state.time += increase; + drawSineWave(state); + requestAnimationFrame(drawGraph.bind(this, state)); + } + + d3.select('#view').attr('transform', 'rotate(90deg)') + + drawGraph(state); + +})(d3) diff --git a/ps/index.fr.html b/ps/index.fr.html index 2d4e119..d154c66 100644 --- a/ps/index.fr.html +++ b/ps/index.fr.html @@ -6,6 +6,7 @@ <link rel="stylesheet" href="../assets/css/home.css"> <!link rel="stylesheet" href="ui/css/mobile.css"> <script type="text/javascript" src="../assets/js/jquery.min.js"></script> + <script type="text/javascript" src="../assets/js/d3.v4.min.js"></script> <script type="text/javascript" src="../assets/js/ps-app.js"></script> <!-- discuss: <ps\at/lesoiseaux.io> --> </head> @@ -108,7 +109,7 @@ extractivist hubris and thirst for exhaustion. We're alive and want to meet you in person to amplify our actions.</p> - </section> + </section><script src="gfx/sine.js"></script> <section id="txt" class="fixed"> <h3><a href="./txt/">TXT</a></h3> |