Skip to content

Command line utility to render fumens into gif/png images.

Notifications You must be signed in to change notification settings

Herschenglime/fumen-canvas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

changes in fork

I edited the rendering behavior to remove the depth effect and add gridlines for easier diagramming for a math paper that I was writing. The modified code can be found in the grid-render branch; everything else functions the same. Thanks to nathan-huckleberry for doing the hard work for me!

fumen-canvas

A basic command-line utility for rendering fumens as png/gif images in the style of four.lol. Written using Knewjade's tetris-fumen.

Usage

Rendering single fumen page to png

fumen-canvas.js image <fumen> <output file>

Renders page of fumen into a png.

Options:
  --version      Show version number                                   [boolean]
  --help         Show help                                             [boolean]
  --page         Render a specific page of the fumen.      [number] [default: 0]
  --height       Number of rows to render starting at the bottom.       [number]
  --transparent  Make empty squares transparent.                       [boolean]                                       [boolean]

Rendering full fumen to gif

fumen-canvas.js gif <fumen> <output file>

Renders fumen into a gif.

Options:
  --version      Show version number                                   [boolean]
  --help         Show help                                             [boolean]
  --start        Specify index of first page to be rendered.
                                                           [number] [default: 0]
  --end          Specify index at which to stop rendering.              [number]
  --height       Number of rows to render starting at the bottom.       [number]
  --transparent  Make empty squares transparent.                       [boolean]

Example Usage

node fumen-canvas.js gif v115@vhKyOJDkBmfBksB9tBHjBplBNrBkmBHsBAAA pc.gif

About

Command line utility to render fumens into gif/png images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%