Skip to content

Instantly share code, notes, and snippets.

View mathcodes's full-sized avatar
💭
🧮 💻 🎵 🧮 💻 🎵 🧮 💻 🎵

Jon Christie mathcodes

💭
🧮 💻 🎵 🧮 💻 🎵 🧮 💻 🎵
View GitHub Profile

Split Screen Components

The following tutorial walks you through creating a split screen component using layout components.

Dependencies:

  "dependencies": {
    "@testing-library/jest-dom": "5.14.1",
    "@testing-library/react": "11.2.7",
    "@testing-library/user-event": "12.8.3",
 "react": "^17.0.2",
@mathcodes
mathcodes / index.html
Created June 12, 2021 08:50
Three.js - Voxel Geometry - UI
<canvas id="c"></canvas>
<div id="ui">
<div class="tiles">
<input type="radio" name="voxel" id="voxel1" value="1"><label for="voxel1" style="background-position: -0% -0%"></label>
<input type="radio" name="voxel" id="voxel2" value="2"><label for="voxel2" style="background-position: -100% -0%"></label>
<input type="radio" name="voxel" id="voxel3" value="3"><label for="voxel3" style="background-position: -200% -0%"></label>
<input type="radio" name="voxel" id="voxel4" value="4"><label for="voxel4" style="background-position: -300% -0%"></label>
<input type="radio" name="voxel" id="voxel5" value="5"><label for="voxel5" style="background-position: -400% -0%"></label>
<input type="radio" name="voxel" id="voxel6" value="6"><label for="voxel6" style="background-position: -500% -0%"></label>
<input type="radio" name="voxel" id="voxel7" value="7"><label for="voxel7" style="background-position: -600% -0%"></label>
@mathcodes
mathcodes / index.html
Created June 12, 2021 08:27
Three.js - postprocessing - 3DLUT
<canvas id="c"></canvas>
@mathcodes
mathcodes / index.html
Created June 12, 2021 08:26
Three.js - Canvas Textured Cube
<canvas id="c"></canvas>
@mathcodes
mathcodes / index.html
Created June 12, 2021 08:10
Three.js - Align HTML Elements to 3D Globe
<div id="container">
<canvas id="c"></canvas>
<div id="labels"></div>
</div>
@mathcodes
mathcodes / index.html
Created June 12, 2021 08:05
Three.js - Transparency - AlphaTest
<canvas id="c"></canvas>
@mathcodes
mathcodes / index.html
Created June 12, 2021 06:43
Three.js - Voxel Geometry - UI
<canvas id="c"></canvas>
<div id="ui">
<div class="tiles">
<input type="radio" name="voxel" id="voxel1" value="1"><label for="voxel1" style="background-position: -0% -0%"></label>
<input type="radio" name="voxel" id="voxel2" value="2"><label for="voxel2" style="background-position: -100% -0%"></label>
<input type="radio" name="voxel" id="voxel3" value="3"><label for="voxel3" style="background-position: -200% -0%"></label>
<input type="radio" name="voxel" id="voxel4" value="4"><label for="voxel4" style="background-position: -300% -0%"></label>
<input type="radio" name="voxel" id="voxel5" value="5"><label for="voxel5" style="background-position: -400% -0%"></label>
<input type="radio" name="voxel" id="voxel6" value="6"><label for="voxel6" style="background-position: -500% -0%"></label>
<input type="radio" name="voxel" id="voxel7" value="7"><label for="voxel7" style="background-position: -600% -0%"></label>

gist for Jon? Whatcha want on here?

Here are some things:

Contact

Github profile image

Jon Christie