Code Monkey home page Code Monkey logo

rust-wasm-graphics's Introduction

Rust playground for wgpu, pixels, embedded-graphics running in the browser!

Building for web

Install the wasm-pack utility for your system. On Arch Linux, I used sudo pacman -S wasm-pack to get the tools. Installing via cargo install wasm-pack caused issues for me due to permissions.

Compile for web with wasm-pack build --target web.

Run by starting an http server, such as python -m http.server, and then open that up in your browser. Navigate to the app/ folder to load the web app!

Building for x86_64

Compile and run for x86_64 with cargo run

TODO:

  • Update versions of pixels and wgpu, fix error that is referenced (here)[gfx-rs/wgpu#2954].
  • Get UI logic out of the platform-dependent attribute code.
    • Show the same thing on both platforms

rust-wasm-graphics's People

Contributors

shulltronics avatar

Stargazers

Andrejs Agejevs avatar Francis Lalonde 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.