View debugdraw.js
This file contains 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
// Gets a JSDraw instance which renders to a PIXI graphics object. | |
// graphics: an instance of PIXI.Graphics | |
// scale: the scaling factor to convert from Box2D coordinates to screen pixels | |
function getPIXIDebugDraw(graphics, scale) { | |
function getColorFromDebugDrawCallback(color) { | |
var col = Box2D.wrapPointer(color, Box2D.b2Color); | |
var red = (col.get_r() * 255 * 255 * 255)|0; | |
var green = (col.get_g() * 255 * 255)|0; | |
var blue = (col.get_b() * 255)|0; | |
return red + green + blue; |
View js
This file contains 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
// From: https://github.com/parallelsio/processing-studies/blob/master/middleman/source/js/sketch.js | |
// Part of a series of studies for parallels.io project | |
// Later versions: http://codepen.io/lifeinchords/pen/avGBoL | |
// DEPENDS ON: http://p5js.org | |
var sourceOne; | |
var sourceTwo; | |
var dest; |
View makehub
This file contains 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
# Title | |
DIY Microscope | |
# Picture | |
media: http://s14.postimg.org/5d0apb39t/Photo0292.jpg | |
# Objective | |
To use a simple usb webcam as a microscope, only a few modifications are needed. Also, A Software That Control The Focus Of Specimen Using Small Servo Motor. | |
# Duration | |
4 Day | |
# Age Group | |
all |