On Sun, 07 Oct 2007 21:50:11 +0200, ddailey <[EMAIL PROTECTED]>  
wrote:

> The triangular tiling visible (through IE/ASV and Opera9.2.3) at
> http://srufaculty.sru.edu/david.dailey/svg/triangles4.svg
> is created with script: a pair of tightly nestled equilateral triangles  
> has been put in a group that is then cloned across the visible region.
>
> Odd and even numbered triangles are filled with different gradients  
> (mainly since if the fy attribute of the gradient is not tweaked then  
> the center of the gradient defaults to the center of the bounding  
> rectangle which is rather different than the perceptual center of the  
> triangle).*
>
> I sought to try simplifying things by building the tiling it with  
> <pattern> rather script. I think any periodic tiling of the plance can  
> be simulated with a rectangular pattern. To simulate the two adjacent  
> equilateral triangles, I split one of them into two halves -- both right  
> triangles -- and appended these halves on either side of the whole one.  
> The pseudo-triangles tile just fine, as can be seen at
> http://srufaculty.sru.edu/david.dailey/svg/triangles5.svg **
>
> The problem is that I can find no way to fill the adjacent  
> half-triangles with what would appear to be a shared radial gradient --  
> even by adjusting the horizontal offset "fx" of the gradients of each.  
> If they share the same radial gradient, then that gradient appears  
> centered relative to the bounding box of each half-triangle individually.

You could perhaps try to make the half-triangles into full triangles, but  
let half of the triangle fall outside of the viewbox of the pattern. That  
way the fill will look the same as for a full triangle, and hopefull pair  
up with the next tile.

> What I want to do is to create something identical to  
> http://srufaculty.sru.edu/david.dailey/svg/triangles4.svg but with  
> <pattern> instead of DOM. My thought is that it oughta be faster -- but  
> who knows? maybe it won't be. Any insights on the relative speeds of  
> such things?

My guess is that if you have a large area to tile on then using patterns  
will be faster than having the same thing drawn a number of times. If  
you're not tiling a large area then sometimes it's faster to draw the same  
thing repeatedly (like in your scripted version).

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to