How to use SparseColor from PerlMagick?
Posted: 2013-08-07T06:05:07-07:00
Hello,
I am somewhat confused about how to use the SparseColor method.
I would like to do the aequivalent of
I have tried:
and
and
Any hints how to properly use this method?
I am somewhat confused about how to use the SparseColor method.
I would like to do the aequivalent of
Code: Select all
convert [...] -sparse-color barycentric "0,0 yellow -%w,%h yellow %w,%h limegreen" [...]
Code: Select all
$image->SparseColor(method=>"Barycentric", points=>"0,0 yellow -%w,%h yellow %w,%h limegreen");
Code: Select all
$image->SparseColor(method=>"Barycentric", "0,0 yellow -%w,%h yellow %w,%h limegreen");
Code: Select all
$image->SparseColor(method=>["Barycentric", "0,0 yellow -%w,%h yellow %w,%h limegreen"]);