← 返回命令列表

Linux command

pgmramp 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Create horizontal gradient

pgmramp -lr [256] [256] > [gradient.pgm]

Create vertical gradient

pgmramp -tb [256] [256] > [gradient.pgm]

Create diagonal gradient

pgmramp -diagonal [256] [256] > [gradient.pgm]

Create circular gradient

pgmramp -ellipse [256] [256] > [gradient.pgm]

说明

pgmramp generates grayscale gradient images. Creates various gradient patterns for testing and backgrounds. Part of Netpbm toolkit.

参数

-lr
Left to right gradient.
-tb
Top to bottom gradient.
-rectangle
Rectangle gradient.
-ellipse
Elliptical gradient.
-diagonal
Diagonal gradient.

FAQ

What is the pgmramp command used for?

pgmramp generates grayscale gradient images. Creates various gradient patterns for testing and backgrounds. Part of Netpbm toolkit.

How do I run a basic pgmramp example?

Run `pgmramp -lr [256] [256] > [gradient.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -lr do in pgmramp?

Left to right gradient.