← 返回命令列表

Linux command

runal 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run a creative coding sketch

runal [sketch.js]

Export animation as a GIF

runal --export gif [sketch.js]

Run with a custom canvas size

runal --width [80] --height [40] [sketch.js]

说明

runal is a text-based creative coding environment similar to Processing or p5.js, but rendering everything as text in the terminal. It can be programmed with JavaScript or used as a Go package. It supports 2D shapes, trigonometry, colors, and can export to PNG, GIF, or MP4.

参数

--export _FORMAT_
Export output to a file. Supported formats: png, gif, mp4.
--width _COLUMNS_
Set canvas width in columns.
--height _ROWS_
Set canvas height in rows.

FAQ

What is the runal command used for?

runal is a text-based creative coding environment similar to Processing or p5.js, but rendering everything as text in the terminal. It can be programmed with JavaScript or used as a Go package. It supports 2D shapes, trigonometry, colors, and can export to PNG, GIF, or MP4.

How do I run a basic runal example?

Run `runal [sketch.js]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --export _FORMAT_ do in runal?

Export output to a file. Supported formats: png, gif, mp4.