https://github.com/jamesn-dev/p5js-ascii
https://github.com/jamesn-dev/p5js-ascii
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jamesn-dev/p5js-ascii
- Owner: JamesN-dev
- Created: 2024-02-06T05:51:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T17:57:15.000Z (over 2 years ago)
- Last Synced: 2025-03-13T20:43:48.500Z (over 1 year ago)
- Language: JavaScript
- Size: 174 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# P5.js Waveform to ASCII Art Converter
A simple p5.js project that converts waveform animations to ASCII art. Still very much a work in progress.
# Status
Waveform animations working and being converted to ascii.Currently workingon fixing position issues. Full inputs work for waveforms 1 and 2. only wave distortion working for waveform 3.
Pixel Sort only visible with a low pixel density configuration. Trying other sorting algorithms. If you want to see it now, reduce pixel density to 0.5 or lower.
# Usage
Git clone then open index.html.
Mess with user input controls. Change parameters in sketch.js. Or add your own waveform animation function (you'll need to add or replace a key action to activate).
# User Input
Currently uses a few minor user inputs from main keyboard only (no numpad yet)
• 1-3 selects different waveform animations.
• Up/Down adjusts amplitude.
• Left/Right adjusts wave distortion.
• 'P' activates pixel sorting (WIP).
• +/- zoom in/out of waveform.
• Hold shift to jump in larger increments.
# Waveforms
1. Sine (Full Control)
2. Triangle (Full Control)
3. Dynamic Wave (Wave Distortion only)
4. .... Coming soon
Some usage of tetoki's p5.asciiart library.
https://www.tetoki.eu/asciiart/index.html