It is currently Fri Sep 18, 2026 11:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Is there a script that can do this?
PostPosted: Wed May 25, 2016 12:09 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4554
Location: Canada
I was wondering if there's such a script that takes a number of words,
and then does random sizes of the words and placed them horizontal/vertically like this background?
Image

I thought if there isn't one, I'd try to write one..but i don't know how to handle the logical part of it? like how would it know how to fit the words into horizontal/vertical?

_________________
Image
Visualize your and others dreams coming true.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Is there a script that can do this?
PostPosted: Wed May 25, 2016 12:35 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
trandoductin wrote:
I was wondering if there's such a script that takes a number of words,
and then does random sizes of the words and placed them horizontal/vertically like this background?
[ Image ]

I thought if there isn't one, I'd try to write one..but i don't know how to handle the logical part of it? like how would it know how to fit the words into horizontal/vertical?

When you create a text layer you can obtain its size from which you can obtain the aspect ratio. Then your problem is tiling the area with rectangles having only these aspect ratios (or their inverse, when using vertical rectangles). Once you have all rectangles, you just generate the adequate text, scale (and possibly rotate) the path.

You can make the problem simpler by tiling with plain rectangles (forget the aspect ratio) and then figure out the text that fits with the least distortion (closest aspect ratio). See http://www.math.ucsd.edu/~ronspubs/82_04_tiling.pdf

_________________
Image


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


cron

* Login  



Powered by phpBB3 © phpBB Group