Re: RES: [PHP] Rounded rectangle in php

From: Date: Sat, 31 Jan 2009 01:09:49 +0000
Subject: Re: RES: [PHP] Rounded rectangle in php
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-287467@lists.php.net to get a copy of this message
On Thu, 2009-01-29 at 13:31 -0200, Jônatas Zechim wrote: > Hi Tedd, i cant imagine doing that pic i've show to u, follow me, > I must do 4 ellipse and 1 rectangle and union all to make a rounded > rectangle? > My problem now is the geometry. > > *------* > | | > *------* > > It can be this? > > zechim > > -----Mensagem original----- > De: tedd [mailto:tedd.sperling@gmail.com] > Enviada em: quinta-feira, 29 de janeiro de 2009 13:21 > Para: Jônatas Zechim; php-general@lists.php.net > Assunto: Re: [PHP] Rounded rectangle in php > > At 11:36 AM -0200 1/29/09, Jônatas Zechim wrote: > >Hi there, is it possible do make a rounded rectangle in php, i can do a > >ellipse, but i need a space between the corners, i need to make something > >like this: > > > >http://superbrush.files.wordpress.com/2008/03/086.jpg > > > >not the color and the shadows, only the form. > > > >zechim > > zechim: > > You can draw anything you want, as long as you can describe it via > statements. > > Here's a simple example: > > http://www.webbytedd.com/b4/draw/ > > Here's rotated text: > > http://www.webbytedd.com/b/rotate-text/ > > Here are some charts: > > http://webbytedd.com/ccc/charts/ > > Keep in mind that these are very simple examples of what can be done. > > Cheers, > > tedd > > -- > ------- > http://sperling.com > http://ancientstones.com > http://earthstones.com > > The link you've given can be done in PHP. You just need to know exactly all of the steps involved. You'll need to draw each line and then each curve, fill the whole thing with a gradient, and then add a shadow in after. Each step I've mentioned here must be further broken down into individual parts that you can algorithmically describe. Ash www.ashleysheridan.co.uk

« previous php.general (#287467) next »