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
[ | |
{ | |
"name": "adaptive-quadratic-curve", | |
"version": "1.0.2", | |
"homepage": "https://github.com/mattdesl/adaptive-quadratic-curve", | |
"description": "adaptive and scalable 2D quadratic curves", | |
"license": "BSD-3-Clause", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/mattdesl/adaptive-quadratic-curve.git" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>three.js canvas - geometry - text</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<style> | |
body { | |
font-family: Monospace; |
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
module.exports = "common utils"; |
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
var fs = require('fs'); | |
var text = fs.readFileSync( __dirname + '/words.txt', 'utf8' ); | |
//split into an array | |
var words = text.trim().split(/\s+/); |
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
//grabs webgl context | |
var gl = require('webgl-context')(); | |
//this in turn depends on kami-texture | |
var tex = require('kami-white-texture')(gl); | |
//this in turn depends on kami-shader and kami-mesh-buffer | |
var batch = require('kami-batch')(gl); | |
batch.begin(); |
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
var test = require('canvas-testbed')(render) | |
var time = 0 | |
function render(ctx, width, height, dt) { | |
ctx.clearRect(0,0,width,height) | |
time += dt | |
var smile = 50 | |
var speed = 2 |
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
var rgb2hsl = require('./rgb2hsl') | |
var palette = require('./palette')(options) | |
//e.g. | |
console.log( rgb2hsl([255,0,255]) ) |
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
module.exports = function range(min, max, value) { | |
return (value - min) / (max - min) | |
} |
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
module.exports = { | |
name: 'circle', | |
controls: [ | |
{ name: 'position', keyframes: [ | |
{ time: 0, value: [0, 0] }, | |
{ time: 2, value: [100, 100], ease: 'bounceOut' }, | |
{ time: 4, value: [0, 100], ease: 'cubicIn' } | |
] }, | |
{ name: 'color', keyframes: [ | |
{ time: 0, value: [255, 255, 255] }, |
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
module.exports = { | |
name: 'circle', | |
controls: [ | |
{ name: 'position', keyframes: [ | |
{ time: 0, value: [0, 0] }, | |
{ time: 2, value: [100, 100], ease: 'bounceOut' }, | |
{ time: 4, value: [0, 100], ease: 'cubicIn' } | |
] }, | |
{ name: 'color', keyframes: [ | |
{ time: 0, value: [255, 255, 255] }, |
OlderNewer