Optimal repetly operations
Posted: 2012-01-18T09:32:39-07:00
Hi all,
I need to make ( in bash ) a big picture (about 5000 pixel) with a list of small circles (like a spacial dispersion graphical).
How is the optimal and fastest method for this if i need set about 6000-7000 circles over a white background of 5000x5000 pixels?
This?
Regards
I need to make ( in bash ) a big picture (about 5000 pixel) with a list of small circles (like a spacial dispersion graphical).
How is the optimal and fastest method for this if i need set about 6000-7000 circles over a white background of 5000x5000 pixels?
This?
Or something like?for n in $(seq 1 5000); do convert -draw 'circle $px,$py $px, ($py-$radius)' results.jpg; done
this last option bash say "unable to open image `120,20' " (where 120 is $px and 20 $py)comand="convert "
for n in $(seq 1 5000); do circles+=" -draw 'circle $px,$py $px, ($py-$radius)'"; done
comand+=$circles
comand+=" results.jpg"
$comand
Regards