https://github.com/randomgamingdev/basicpixytextp5js
A basic pixelated text rendering library for p5 powered by Pixy.
https://github.com/randomgamingdev/basicpixytextp5js
font javascript javascript-library library nice p5 p5js pixel retro simple small text
Last synced: 5 months ago
JSON representation
A basic pixelated text rendering library for p5 powered by Pixy.
- Host: GitHub
- URL: https://github.com/randomgamingdev/basicpixytextp5js
- Owner: RandomGamingDev
- License: mit
- Created: 2022-12-22T02:26:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T05:26:19.000Z (over 1 year ago)
- Last Synced: 2024-04-08T06:30:51.037Z (over 1 year ago)
- Topics: font, javascript, javascript-library, library, nice, p5, p5js, pixel, retro, simple, small, text
- Language: JavaScript
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BasicPixyTextp5js
A basic pixelated text rendering library for p5 powered by [Pixyp5js](https://github.com/RandomGamingDev/Pixyp5js).

Create a font and load it using `LoadFont` and use `RenderText` or `RenderTextLinkedList` (if you're using the latter check below for more info) to render text. To design your font (or to be lazy) you can use
default-font.js which contains a font variable named `font`. (Very creative name ik)
Remember, to upload the rendered pixels you have to run `updatePixels()` on Pixy!
To use it you can simply include https://cdn.jsdelivr.net/gh/RandomGamingDev/Pixyp5js/pixy.js (This is the Pixy library that BasicPixyTextp5js relies on) and https://cdn.jsdelivr.net/gh/RandomGamingDev/BasicPixyTextp5js/basicpixytext.js in your HTML file!
If you want to you can also just download the file and include it in your HTML file that way.
To include the default font simply do the same thing with https://cdn.jsdelivr.net/gh/RandomGamingDev/BasicPixyTextp5js/default-font.js.
https://github.com/RandomGamingDev/OneWayLinkedListLibJs or https://github.com/RandomGamingDev/DoubleLinkedListLibJs/tree/main are dependencies if you want to use `RenderTextLinkedList`. To use it you can simply include https://cdn.jsdelivr.net/gh/RandomGamingDev/OneWayLinkedListLibJs/list.js or https://cdn.jsdelivr.net/gh/RandomGamingDev/DoubleLinkedListLibJs/list.js in your HTML file! If you want to you can also just download the file and include it in your HTML file that way.
btw stuff updates so remember to specify a version/commit for your library if you want to use a link and don't want your code to automatically update to the newest version of the library