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"]);