GithubHelp home page GithubHelp logo

makeabilitylab / p5js Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 4.0 45.72 MB

All things p5js for playing, teaching, and experimenting!

Home Page: https://makeabilitylab.github.io/p5js/

License: MIT License

JavaScript 99.66% HTML 0.29% CSS 0.02% C++ 0.03%

p5js's Introduction

p5js

p5js repo for teaching by Jon E. Froehlich. Many of these programs are also available in the p5js editor (in one form or another though typically the code on this page—which is served from GitHub—is more up-to-date)

Some fun examples

You can see all of this code at our p5js GitHub repo.

Color

Sound

Visualizing Sound Level

Simple Sound Level Meters

Abstract Sound Visualizations

Time-series Visualizations

Waveform Visualizations

Visualizing Sound Frequency

You can learn more about analyzing sound frequency using Fast Fourier Transforms here. But you don't need to understand the underlying mathematics to extract and visualize the underlying frequencies of sound waves in p5js, their FFT library and examples make it easy!

Frequency Bar Graphs

Frequency Spectrum Line Graphs

Abstract Frequency Visualizations

Visualizing Multiple Sound Properties

  • Sound Visualization: Processes microphone input in realtime and shows a scrolling waveform and various frequency visualizations (spectrogram, spectral graph). Writes to an off-screen graphics buffer for performance. Code link.

Perlin Noise

Vectors

Computer Vision

Games

Many of these games were created in 2020 when I first started learning p5js.

Sound as input

  • FFTGame: use different frequencies (pitches) of sound to launch a ball into the air. Code link

Makeability Lab Logos

The Makeability Lab logo is precisely geometric in its foundation, composed solely of triangles and 45 degree angles. I've long wanted to programmatically play with this form. Here are some of my experiments:

Makeability Lab Holiday Cards

  • Holiday Card 2023: The interactive Makeability Lab holiday card for 2023 morphs a triangular Santa into the Makeability Lab logo. Code link

p5js's People

Contributors

jonfroehlich avatar dependabot[bot] avatar

Stargazers

Monica Powell avatar nnlychai avatar  avatar  avatar Marcelo Junior avatar Harsh Palan avatar  avatar Amber Hall avatar Anne @ D:DREAMS Studio avatar Lucas Martín avatar  avatar Philipp Wabnitz avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

p5js's Issues

Gallery for p5js projects

Need to create a navigable gallery for all p5js projects. Would be nice to have search and filtering.

Experiment with auto-deploy of node.js app on cloud services

If we want to support multiplayer games in our prototyping courses, then each team needs a server (seems complicated). There are lots of sites trying to offer servers as a service and, specifically, for node.

Here's how to do it on Microsoft Azure: https://azure.microsoft.com/en-us/resources/videos/create-a-nodejs-site-deploy-from-github/

Lots of other node.js hosting services, however, including:

Create a reusable Web Serial class

Create a Web Serial class with various events to process received data, trigger when connection established, etc.

And then refactor sample code that uses web serial to use that class.

The _libraries folder is being excluded by GitHub pages build process

From:

GitHub Pages uses Jekyll by default to build Pages sites. Because of the way that Jekyll works, any files or folders that start with _, ., # or end with ~ are not built:

https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ 34

If you’re not using Jekyll, you can add an empty file named .nojekyll to the root of your publishing source to avoid this.

If you are using Jekyll, you can use the include directive in your _config.yml file to explicitly include these files/folders:

https://jekyllrb.com/docs/configuration/options/

Node notes

As usual, Daniel Shiffman's introductory videos are awesome. He has one for Node:
https://youtu.be/bjULmG8fqc8

Here's a nice, 7-min video on using Azure cloud services to run a Node app with Express:
https://youtu.be/uuY5j4N78vw

Here's official docs on getting Node app on Azure:

We are going to use the Express—a minimal web framework on top of Node

Auto-deploy to server

Ideally, we'd be able to auto-deploy to Azure, Heroku, or Glitch (etc) using a single github repo (this one) and then setup the auto-deploy infrastructure to just look at a sub-folder within our github repo. Is this possible? Still investigating.

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.