A Pen by Marco Dell'Anna on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
let githubDataCache = [{comments:0,created_at:"2016-06-24T14:22:16Z",labels:[{name:"Question",color:"cc317c"}],number:2,user:{login:"Evilmulle"}},{comments:1,created_at:"2016-06-24T19:29:32Z",number:3,user:{login:"Bamboy"}},{comments:1,created_at:"2016-06-24T20:15:47Z",number:4,user:{login:"DarthTorus"}},{comments:1,created_at:"2016-06-24T22:53:12Z",labels:[{name:"Question",color:"cc317c"}],number:5,user:{login:"elongielink"}},{comments:6,created_at:"2016-06-24T22:55:41Z",labels:[{name:"Challenge",color:"fbca04"}],number:6,user:{login:"Flameingo"}},{comments:0,created_at:"2016-06-24T23:10:58Z",labels:[{name:"Challenge",color:"fbca04"}],number:7,user:{login:"shiffman"}},{comments:0,created_at:"2016-06-24T23:11:09Z",labels:[{name:"Challenge",color:"fbca04"}],number:8,user:{login:"shiffman"}},{comments:1,created_at:"2016-06-24T23:11:45Z",number:9,user:{login:"shiffman"}},{comments:2,created_at:"2016-06-24T23:14:11Z",labels:[{name:"Challenge",color:"fbca04"}],number:14,user:{login:"shiffman"}},{comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ballRadius = 10; | |
let pegCount = 16; | |
let pegSize = 50; | |
let maximumBalls = 200; | |
let ballEveryNFrames = 5; | |
let w = 750; | |
let h = 900; | |
let countX = 10; | |
let countY = 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.14/p5.js" type="text/javascript"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.8/addons/p5.dom.js" type="text/javascript"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.8/addons/p5.sound.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="stage" data-el="stage"></div> | |
<h1 data-el="head"> | |
<span data-el="letter">M</span> | |
<span data-el="letter">A</span> | |
<span data-el="letter">T</span> | |
<span data-el="letter">T</span> | |
<span data-el="letter">E</span> | |
<span data-el="letter">R</span> | |
<span data-el="letter">J</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="sim" ></canvas> |
playing around with matter.js, pixi.js and gravity physics
visibility library from https://github.com/Silverwolf90/2d-visibility and originally by http://www.redblobgames.com/articles/visibility/
A Pen by not important on CodePen.
A Pen by Olivier Destenay on CodePen.
Just playing around with matter.js and sprites.
A Pen by Sarah Drasner on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aside> | |
<h1>The Milk Glass</h1> | |
<h2>by @gianlucaguarini</h2> | |
</aside> | |
<script>/** | |
* matter-js 0.14.0 by @liabru 2017-11-30 | |
* http://brm.io/matter-js/ | |
* License MIT | |
*/ | |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Matter=e()}}(function(){return function e(t,n,o){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return i(n?n:e)},d,d.exports,e,t,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){var o={};t.exports=o;var i=e("../geometry/Vertices"),r=e("../geometry/Vector"),s=e("../core/Sleeping") |