syntax for using a variable in Draw
Posted: 2018-03-22T14:27:03-07:00
Hello,
any idea what is the syntax ?
Code: Select all
#I can use variables here but a pixel isn't really big enough
$image->Set("pixel[$value[$z][1],$value[$z][2]]"=>"#000000");
#try to make a bigger dot, this works
$image->Draw(fill=>'black', stroke=>'gold', primitive=>'circle', points=>'200,4 10,10',strokewidth=>2);
#this also works with a variable for "strokewidth
$image->Draw(fill=>'black', stroke=>'gold', primitive=>'circle', points=>'200,4 10,10',strokewidth=>$c);
#but I can't seem to find the syntax to use a variable in "points"
$image->Draw(fill=>'black', stroke=>'gold', primitive=>'circle', points=>'$c,4 10,10',strokewidth=>2);