Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.17 KB

README.md

File metadata and controls

22 lines (13 loc) · 1.17 KB

Muter Logo Maker

screenshot showing an RTF file in TextEdit with a block character illustration of the Muter zombie hand logo on the left, and a Terminal window showing the same logo

Generate the Unicode art for the muter logo. Use the included .rtf file to edit the logo Unicode art in TextEdit on macOS. Then run the script to render the chracters and colors from TextEdit into a Swift source file.

This is separate code from the main muter repo for two reasons:

  1. So we don’t have to include an extra .rtf file and parsing code in the repo.
  2. This repo uses an AppKit API to read the .rtf file as an NSAttributedString, and this API is not available on Linux, where muter needs to be able to run.

Usage

Run MuterLogoMaker and pass in the path to the MuterLogo.swift file from the main muter repo. The file will be overwritten with the output of MuterLogoMaker.

swift run MuterLogoMaker --output /path/to/MuterLogo.swift

Testing

To see if it worked, in the main muter repo, run swift run and look at the initial output. You can use Ctrl-C to cancel executation as soon as you see the logo.