Colours are the deeds of light; its deeds and sufferings: thus considered we may expect from them some explanation respecting light itself.
DESCRIPTION
The cptsvg utility converts the colour palette table (cpt) files used by GMT (1) to the gradients in the Scalar Vector Graphics (SVG) format.
The program will read from stdin
if a file is not specified as
the final argument, and write to stdout
if the -o
option is not specified.
The output is formatted for machines to read, rather than humans. A post-processor such as tidy (1) could be used in the latter case.
OPTIONS
--backtrace-file
path
-
Specify a file to which to write a formatted backtrace. The file will only be created if there is a backtrace created, typically when an error occurs.
--backtrace-format
format
-
Specify the
format
of the backtrace written to the files specified by--backtrace-file
, one ofplain
,xml
orjson
. -g
,--geometry
width
xheight
-
Specify the size of the SVG preview in pixels.
-h
,--help
-
Brief help.
--hinge-active
-
If the input cpt has a
SOFT_HINGE
directive, then activate that hinge (resulting in independent scaling of the two halves of the gradient either side of the hinge).If the input does not have such a directive, then this option has no effect.
-o
,--output
path
-
Write the output to
path
, rather thanstdout
. -p
,--preview
-
Include a preview in the SVG output. See also the
--geometry
option. -v
,--verbose
-
Verbose operation.
-V
,--version
-
Version information.