Page 1 of 1
drawing multipl polygons from array list of coordinates?
Posted: Thu Jun 23, 2016 10:25 pm
by tester
Drawing polygon in ruby is one thing. I'm looking for something, that would draw multiple polygons from array list like this (or from 4 paralel arrays, for x,y,w,h parameters):
x1,y1,w1,h1
x2,y2,w2,h2
...
so that the drawing updates as the input array changes.
I need to deal with some datasets for an approaching conference.

Re: drawing multipl polygons from array list of coordinates?
Posted: Fri Jun 24, 2016 11:59 pm
by billv
Try this...Hope it works for you..

...
Re: drawing multipl polygons from array list of coordinates?
Posted: Sat Jun 25, 2016 11:01 am
by tester
Thanks billv, this should to the job.
Re: drawing multipl polygons from array list of coordinates?
Posted: Sat Jun 25, 2016 7:46 pm
by tester
I made some little mad science. These tools can be useful sometimes for various measurements.
Re: drawing multipl polygons from array list of coordinates?
Posted: Sat Jun 25, 2016 10:20 pm
by billv
Nice work....I was just working on improving an old histogram attempt...
These are much better...

..Cheers
Re: drawing multipl polygons from array list of coordinates?
Posted: Sun Jun 26, 2016 1:26 am
by RJHollins
Nice Tester !
thx

Re: drawing multipl polygons from array list of coordinates?
Posted: Sun Jun 26, 2016 5:12 pm
by tester
I'm glad, that this is useful to someone else too.
