b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 6633185 (Thread)

#
(, Wed 13 Dec 2006, 13:26, archived)
# is that done in php?
am i right in thinking you're:

creating an image
overlaying the kittin
taking into consideration height and width of text box
drawing speech bubble
putting text in over it?
(, Wed 13 Dec 2006, 13:27, archived)
# Yes.
Sort of.

I get the height of the truetype text boundary box (the width is fixed). For the wrapping I used some code I got off the PHP site and modified it so that it actually worked. I couldn't be bothered to spend half a day working out how to wrap ttf text.

Once I work out the height of the text I create an image that height + the height of the kittin image + some gaps. I then draw the speechbubble to surround the text, fill it in with the background colour.
I then stick the text on, load in the kittin and copy it onto the text image.
I then squirt it out as a GIF.

Hurrah!
(, Wed 13 Dec 2006, 13:32, archived)
# The staging server i leech off hasn't got php installed..
... i'm using an ASP dll that's pretty nifty, albeit gay cos its ASP...

and i'm lazy :(
(, Wed 13 Dec 2006, 13:34, archived)
# I haven't got a clue what any of that means
php? penis hip prosthetics?
(, Wed 13 Dec 2006, 13:36, archived)
# t'is "Personal Home Page" open-source tinterweb language..
.. b3ta is written in it

*edit* hover over "reply"
(, Wed 13 Dec 2006, 13:38, archived)
# It doesn't mean that
anymore.

They don't like to refer to their humble origins. I think it doesn't really stand for anything these days, or if it does it's something like Pre-Hypertext Processor.
(, Wed 13 Dec 2006, 13:40, archived)
# gah! thilly billyth!
(, Wed 13 Dec 2006, 13:44, archived)
# It's recursive...
...it stands for PHP Hypertext Processor

Clever, huh?

Er...

Geeks, eh?
(, Wed 13 Dec 2006, 14:18, archived)