Skip to content

Instantly share code, notes, and snippets.

View lostintangent's full-sized avatar

Jonathan Carter lostintangent

  • GitHub Staff
  • Seattle, WA
  • 18:14 (UTC -07:00)
  • X @lostintangent
View GitHub Profile
@lostintangent
lostintangent / it-s-raining-colors-hallelujah.markdown
Last active March 31, 2020 04:48
It's raining colors, hallelujah

It's raining colors, hallelujah

Propagation of color from a central point.
Combine two to make rings.
It makes me think of drops of rain in a puddle.

A Pen by Dillon on CodePen.

License.

@lostintangent
lostintangent / index.pug
Created February 22, 2020 18:41
Pure CSS Claw Crane
form.machine
input(type="checkbox",id="fire",name="fire",value="fire")
button.machine__btn(type="button",aria-labelledby="left-btn",ontouchstart="")
span.left-arrow
span.sr(id="left-btn")="Left"
button.machine__btn(type="button",aria-labelledby="right-btn",ontouchstart="")
span.right-arrow
span.sr(id="right-btn")="Right"
button.machine__btn(type="button",aria-labelledby="up-btn",ontouchstart="")
span.up-arrow
@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>