Coder Social home page Coder Social logo

elouan-lb / hilbert Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.76 MB

A web application mapping a single index to an N-dimensional parameter space, easing parameter space explorations for creatives.

JavaScript 79.88% HTML 0.28% Vue 11.17% CSS 4.66% Shell 0.14% C 3.87%

hilbert's Introduction

Hilbert

A web application mapping a single index to an N-dimensional parameter space, easing parameter space explorations for creatives.

  • Sampling is made with the Hilbert space-filling curve, with a C implementation of John Skilling's algorithm compiled to WebAssembly with Emscripten
  • Computed parameters values are sent through UDP with osc-js's Bridge Plugin (combining WebSocket and UDP)

Vue project setup

npm install

Compiles and hot-reloads for front-end development

npm run servefrontend

Run back-end Node server for UDP communication

npm run servebackend

Compiles and minifies for production

npm run build

Compile C code to WASM

Download and install Emscripten

https://emscripten.org/docs/getting_started/downloads.html

MAC OS users can use Homebrew to install emscripten

brew install emscripten

Compile C code to WASM with Emscripten
emcc src/wasm/hilberttransposition.c -o hilberttransposition.js -s WASM_BIGINT -s EXPORTED_FUNCTIONS='["_coordinates_from_distance", "_distance_from_coordinates"]' -s MODULARIZE -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap"]'
mv hilberttransposition.js src/wasm/
mv hilberttransposition.wasm public/js/

Issues

  • Sliders at wrong position on first click on snapshot, right on second
  • Click + click out

hilbert's People

Contributors

elouan-lb avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.