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
# GitIgnore for Cascades Proyects # | |
################### | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o |
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
/** | |
* Normalize the browser animation API across implementations. This requests | |
* the browser to schedule a repaint of the window for the next animation frame. | |
* Checks for cross-browser support, and, failing to find it, falls back to setTimeout. | |
* @param {function} callback Function to call when it's time to update your animation for the next repaint. | |
* @param {HTMLElement} element Optional parameter specifying the element that visually bounds the entire animation. | |
* @return {number} Animation frame request. | |
*/ | |
if (!window.requestAnimationFrame) { | |
window.requestAnimationFrame = (window.webkitRequestAnimationFrame || |
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
function Slider (min, max, value) { | |
this.min = (min === undefined) ? 0 : min; | |
this.max = (max === undefined) ? 100 : max; | |
this.value = (value === undefined) ? 100 : value; | |
this.onchange = null; | |
this.x = 0; | |
this.y = 0; | |
this.width = 16; | |
this.height = 100; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Real Walk</title> | |
</head> | |
<body> | |
<canvas id="canvas" width="400" height="400"></canvas> | |
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
function Ball3d (radius, color) { | |
if (radius === undefined) { radius = 40; } | |
if (color === undefined) { color = "#ff0000"; } | |
this.x = 0; | |
this.y = 0; | |
this.xpos = 0; | |
this.ypos = 0; | |
this.zpos = 0; | |
this.radius = radius; | |
this.vx = 0; |
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
function Tree () { | |
this.x = 0; | |
this.y = 0; | |
this.xpos = 0; | |
this.ypos = 0; | |
this.zpos = 0; | |
this.scaleX = 1; | |
this.scaleY = 1; | |
this.color = "#ffffff"; | |
this.alpha = 1; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Collision 3D</title> | |
<link rel="stylesheet" href="../include/style.css"> | |
</head> | |
<body> | |
<canvas id="canvas" width="400" height="400"></canvas> |
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
<snippet> | |
<content><![CDATA[ | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Page Title</title> | |
<link rel="stylesheet" href=""> |
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
/*------------------------- | |
Simple reset | |
--------------------------*/ | |
*{ | |
margin:0; | |
padding:0; | |
} |
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
/***** | |
* | |
* Install first this modules as devDependencies | |
* | |
* npm install browser-sync gulp gulp-autoprefixer gulp-connect gulp-load-plugins gulp-sass --save-dev | |
* | |
******/ | |
var gulp = require('gulp'), | |
$ = require('gulp-load-plugins')(), |
OlderNewer