You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
William Toohey a68aa24a22 Fix broken invert on some maps 9 years ago
docs Emphasise right click to seek 10 years ago
fonts Move seek buttons 10 years ago
img Invert no longer uses CSS filter. Much faster as a result. 9 years ago
lib Flawless mp3 loops - switch to kepstin's mpg123.js. 9 years ago
src Fix broken invert on some maps 9 years ago
.babelrc Move to gulp to simplify the build significantly 10 years ago
.gitignore Slight vorbis cleanup 10 years ago
.jshintrc Lint pass 10 years ago
LICENSE Add license, update gitignore 10 years ago
README.md Update README.md 9 years ago
favicon.ico Minor cleanups, add favicon 10 years ago
gulpfile.js Flawless mp3 loops - switch to kepstin's mpg123.js. 9 years ago
index.html Fix default tab and the curse of the missing semicolon 9 years ago

README.md

0x40-web

A fairly complete HTML5/CSS3 Canvas + Web Audio clone of the 0x40 Hues Flash.

Should work on most modern browsers.

Example pages:

Default Hues
420 Hues
Halloween Hues

You can also have animations that sync perfectly with the beats of the songs. Inspired by Kepstin's Integral experiments.
420 Hues, Snoop Edition
"Montegral"

Install (Make your own Hues)

  1. Start by downloading the latest release. These are minified and load faster.
  2. Put your respack zips somewhere they can be found by your web server. My hues have a respacks/ folder under the main directory.
  3. Edit index.html:
  4. If your html is in a different location to your lib folder: * Edit workersPath to point to the correct (relative) location.
  5. Edit the defaults object so the respacks list contains the respacks you wish to load.
  6. Optional: Add any extra settings to the defaults object.
  7. Upload everything to your server!

Example settings

var defaults = {
    workersPath : "lib/workers/",
    respacks : ["./respacks/Defaults_v5.0.zip", 
                "./respacks/HuesMixA.zip"
                ],
    firstSong : "Nhato - Miss You",
};

Settings object

See HuesSettings.js for the possible options you can put into the defaults object.

Building

Install Node.js, v5 preferred.
Install the required packages for the build:

npm install gulp -g
npm install gulp-sourcemaps gulp-babel babel-preset-es2015 gulp-uglify gulp-concat gulp-cssnano gulp-autoprefixer gulp-order del jshint gulp-jshint

Build with gulp. Make a release folder with gulp release. For seamless development, auto-minify changed files with gulp watch.