This is a condensed version of my 2 kilobyte game Hue Jumper
Full explanation of how it works: http://frankforce.com/?p=7427 Code on GitHub: https://github.com/KilledByAPixel/HueJumper2k
A Pen by Frank Force on CodePen.
This is a condensed version of my 2 kilobyte game Hue Jumper
Full explanation of how it works: http://frankforce.com/?p=7427 Code on GitHub: https://github.com/KilledByAPixel/HueJumper2k
A Pen by Frank Force on CodePen.
A Pen by Chris Ferdinandi on CodePen.
| <div class="flex flex-wrap"> | |
| <div class="w-full sm:w-8/12 mb-10"> | |
| <div class="container mx-auto h-full sm:p-10"> | |
| <nav class="flex px-4 justify-between items-center"> | |
| <div class="text-4xl font-bold"> | |
| Plant<span class="text-green-700">.</span> | |
| </div> | |
| <div> | |
| <img src="https://image.flaticon.com/icons/svg/497/497348.svg" alt="" class="w-8"> | |
| </div> |
| const audioCtx = new window.AudioContext(); | |
| const oscillator = audioCtx.createOscillator(); | |
| oscillator.connect(audioCtx.destination); | |
| oscillator.type = "sine"; | |
| let numItems = 0 | |
| oscillator.frequency.setValueAtTime( | |
| 1, | |
| audioCtx.currentTime |
| <script src="https://threejs.org/build/three.min.js"></script> | |
| <script src="https://threejs.org/examples/js/utils/BufferGeometryUtils.js"></script> | |
| <script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script> | |
| <script> | |
| var noise = ` | |
| // | |
| // Description : Array and textureless GLSL 2D/3D/4D simplex | |
| // noise functions. | |
| // Author : Ian McEwan, Ashima Arts. | |
| // Maintainer : stegu |
| <div class="neumorphism-toggle"> | |
| <input type="checkbox" id="neumorphism" checked> | |
| <label for="neumorphism"> | |
| <div class="switch"> | |
| <div class="dot"></div> | |
| </div> | |
| <span>Neumorphism</span> | |
| </label> | |
| <span>... not allowed to toggle again :(</span> | |
| </div> |
A Pen by Casthra Demosthene on CodePen.
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |