Text Justification - Map looks much better now!
Vintage Star System generator » Devlog
This has by far been the most difficult feature to get right - dynamic text justification.
Something that I was constantly thinking about before this feature was that the lines were just left aligned and in all the vintage like maps like this I was always seeing justified text. Since P5.js doesn't support text justification natively, I had to write the algorithm myself and literally calculate the placement of each word that's rendered on the canvas. After a week, I'm pretty happy with the outcome and I now have a process to create justified text even for non-rectangular areas!
Vintage Star System generator
A generator that procedurally generates vintage maps of fantasy star systems
Status | In development |
Category | Tool |
Author | Arkimedz |
Tags | Generator, Sci-fi |
More posts
- Custom star name now possible!Jun 01, 2023
- Planets have white moon-like crescents nowMar 05, 2022
- Random comet names and asteroid dataMar 01, 2022
- Dynamic star and planet names across the mapFeb 26, 2022
- Added dynamic star namesFeb 25, 2022
- Star System GeneratorFeb 24, 2022
Leave a comment
Log in with itch.io to leave a comment.