Skip to content

Instantly share code, notes, and snippets.

View lostintangent's full-sized avatar

Jonathan Carter lostintangent

  • GitHub Staff
  • Seattle, WA
  • 23:51 (UTC -07:00)
  • X @lostintangent
View GitHub Profile
@lostintangent
lostintangent / schema.json
Last active July 5, 2020 23:53
GistPad - Showcase Manifest Schema #schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Schema for GistPad showcases.",
"type": "object",
"required": [
"categories"
],
"properties": {
"categories": {
"type": "array",
@lostintangent
lostintangent / index.html
Created February 15, 2020 22:55
snowyLandscape (snowy landscape winter) - created by pure JavaScript and canvas
<!-- Contents -->
<div id="contents">
<canvas id="canvas">This browser cannot use a canvas.</canvas>
</div>
@lostintangent
lostintangent / index.html
Created February 15, 2020 22:53
Truchet Lattice
<div id="controls"></div>
@lostintangent
lostintangent / index.html
Created February 15, 2020 22:52
Starfields GLShader
<!--comments in JS-->
<script id="vertexShader" type="x-shader/x-vertex">
varying vec2 v_uv;
void main() {
v_uv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.);
}
</script>
<!-- FragmentShader code here -->
<!-- // built from the tutorial https://www.youtube.com/watch?v=dhuigO4A7RY -->
function App() {
const { Renderer, Camera, Geometry, Program, Mesh, Vec2, Vec3, Color, GPGPU } = ogl;
let renderer, gl, camera;
let time, mouse, color1, color2;
let points, positionB, velocityB;
init();
function init() {
@lostintangent
lostintangent / foam-pit-starfield.markdown
Last active February 16, 2020 21:19
Foam Pit Starfield
@lostintangent
lostintangent / index.html
Created February 12, 2020 00:08
Twitter Kirby SVG Animation
<div class="wrapper">
<svg class="frame" viewBox="0 0 530 380">
<defs>
<filter id="blackOutlineEffect">
<feMorphology in="SourceAlpha" result="MORPH" operator="dilate" radius="2" />
<feColorMatrix in="MORPH" result="WHITENED" type="matrix" values="0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 1 0"/>
<feMerge>
<feMergeNode in="WHITENED"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
@lostintangent
lostintangent / hexagonal-truchet-tiles.markdown
Created February 8, 2020 16:54
Hexagonal Truchet Tiles
@lostintangent
lostintangent / index.html
Last active July 13, 2020 19:55
Lighthouse
<div id="lighthouse">
<div class="top">
<div class="lightning-rod"></div>
<div class="cupola"></div>
<div class="light-room"></div>
</div>
<div class="last-story">
</div>
<div class="stories">
<div class="window"></div>