Giter Site home page Giter Site logo

rust_art's Introduction

Rust Art

This is a simple Nannou project for people new to Rust or Nannou to start from.

The Nannou documentation is the best source of information, but there are comments in src/main.rs.

Nannou home page: https://nannou.cc/

Nannou getting started guide: https://guide.nannou.cc/

Building and Running

We've tested this project on Windows 11, Ubuntu Linux 23.10, and MacOS Sonoma.

First, you need a Rust toolchain installed. rustup is an official tool for easily setting up a toolchain on various platforms. The rustup install process is guided and should setup external tooling too: https://rustup.rs/

Second, assuming you have git installed, clone this repository:

git clone https://github.com/jbit/rust_art

If you don't have git and want a quick start, you can download the code as a zip file: https://github.com/jbit/rust_art/archive/refs/heads/main.zip

Assuming that rustup installed a toolchain, you should now be able to run this command from the rust_art directory:

cargo run

If everything went well it will display a window on screen!

Editing the code

It's recommended you install VSCode (https://code.visualstudio.com/) however various text editors support Rust.

Once VSCode is installed, open the rust_art directory.

VSCode should prompt you to install the "Rust Analyzer" plugin, it's recommended you use this plugin (it provides syntax highlighting, code navigation, and various other nice to haves).

You should be able to make modifications to src/main.rs.

To test your modifications, save main.rs, then either execute cargo run from the terminal, or press Ctrl+Shift+B in VSCode.

How to make this project from scratch

It's simple to make this project from scratch yourself:

cargo new rust_art
cd rust_art
cargo add nannou
# add fun things to src/main.rs
cargo run --release

rust_art's People

Contributors

jbit avatar

Watchers

 avatar

Forkers

jargez

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.