There are some annoying bugs that I will fix soon: the one the is most irksome is that my collision detection has some issues that I believe are mainly occurring with triangles but I really haven't done any extensive testing...
This blog is devoted to patterns made with polygons. I'll try to have something interesting posted regularly.
Wednesday, August 27, 2014
New TileLand prototype
There are some annoying bugs that I will fix soon: the one the is most irksome is that my collision detection has some issues that I believe are mainly occurring with triangles but I really haven't done any extensive testing...
Saturday, June 07, 2014
Revisiting an unravelling
Perhaps I should come up with a visual of this unravelling. I was hoping I would find one in my blog but I didn't. I should make a better index for this thing...done. In this screen capture, you can see that the outside of the original pentagon loop is now the inside of the composed shape and the inside of the original loop corresponds to the 4 sides of the pentagons the are on the outside of the composed shape. Perhaps I'll play some more with this ‡(double dagger shape which I found its html code here).
Sunday, June 01, 2014
Zig, Zag, Zog
This picture of the code shows a as zig, b as zag, and c as zog. It's pretty clear that a calls b which calls a making a zig-zag loop; and similarly that b calls c which calls b making the zag-zog loop. But the zig-zog loop takes a bit of though--in the code for b since it calls both an a and a c. But essentially c results in a cbcbcb loop with that last b also calling an a so the first c essentially calls an a. Similarly a essentially calls an c thus resulting in the zig-zog loop. There's a bit of twisting calling going on.
Saturday, May 17, 2014
Google driving...
I call this last pattern Bugs. I figure that even though it's a fairly simple pattern it has an interesting twist: it's has what I call a zig-zag. Imagine you have grid of squares that are separated by "spacers. These spacers have 2 hexagons and a square which have a slight twist--call is a zig. So to make the grid fit together, you need to undo that twist with a zag (the mirror action). This can be seen in the code by alternating from "a" to "b" and from "b" to "a".
Saturday, December 28, 2013
Embedding my broccoli
Monday, December 02, 2013
Thursday, November 14, 2013
Html 5 play
I'm always trying to coming up with some compelling reasons to code for my classes. The argument I try to make is that you can save time by making flexible and short code that does amazing things. I'm still only having limited success but maybe one day I'll have hit just the right code that lights a spark....
I did keep it relatively simple until I started to mess with the text...oops. The code tag doesn't seem to work within Blog spot...hmmm
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="230px"
height="360px" viewBox="0 0 230 360" enable-background="new 0 0 230 360" xml:space="preserve">
<!-- A bit of play with html 5 -->
<defs>
<g id="Chev">
<path id="C" transform="skewX(30) scale(1,0.8660)" d="M 0,0 0,80 80,80 80,0 60,0 60,60 20,60 20,0 z"/>
<path id="revC" opacity="0.4" transform="scale(1,-1) skewX(30) scale(1,0.8660)" d="M 0,0 0,80 80,80 80,0 60,0 60,60 20,60 20,0 z"/>
</g>
</defs>
<!-- HTML text -->
<g> <!-- incase I want to play with the colour -->
<g transform="translate(4,115)" > <!-- had to position it here so that the skews were easier to figure out-->
<g>
<animateTransform id="breathIn" attributeName="transform" additive="sum" dur="2.5s" type="translate" values="80 0"/>
<animateTransform attributeName="transform" additive="sum" dur="2.5s" type="skewY" from="30" to="0"/>
<animateTransform attributeName="transform" additive="sum" dur="2.5s" type="translate" values="-80 0"/>
<text transform="skewY(-30) scale(1.42,1)" font-family="sans-serif" font-weight="bold" font-size="80" x ="0" y="0">H</text>
</g>
</g>
<g transform="translate(81,70)" > <!-- had to position it here so that the skews were easier to figure out-->
<g>
<animateTransform attributeName="transform" attribueType="xml" dur="2.5s" type="skewY" from="-30" to="0"/>
<text transform="skewY(30) scale(0.85,1)" font-family="sans-serif" font-weight="bold" font-size="80" >TML</text>
</g>
</g>
</g>
<!-- the chevrons -->
<g>
<g> <!-- bottom red chevron (pointing down) -->
<animateMotion path="M 0,-400 0,0 " dur="2.5s" />
<use xlink:href="#Chev" fill = "red" transform="translate(150,115) rotate(-60,0,0) rotate(-30,0,0) translate(-200,-69.282)" />
</g>
<g> <!-- top red chevron (pointing up) -->
<animateMotion path="M 0,400 0,0 " dur="2.5s" />
<use xlink:href="#Chev" fill = "red" transform="translate(150,115) rotate(-60,0,0) rotate(150,0,0)" />
</g>
<g> <!-- top orange chevron (pointing up left) -->
<animateMotion path="M 346,200 0,0 " dur="2.5s" />
<use xlink:href="#Chev" fill = "orange" transform="translate(150,115) rotate(-60,0,0) rotate(90,0,0) translate(-120,69.282)" />
</g>
<g> <!-- bottom orange chevron (pointing down right) -->
<animateMotion path="M -346,-200 0,0 " dur="2.5s" />
<use xlink:href="#Chev" fill = "orange" transform="translate(150,115) rotate(-60,0,0) rotate(270,0,0) translate(-160,-138.564)" />
</g>
</g>
</svg>
Popular Posts
-
Here's my take on Gödel, Escher, Bach cover in an attempt to start my new class, DATA ANALYTICS: PRINCIPLES & TOOLS. These were ...
-
This one was fun to make. I wanted a cool snowflake to be a backdrop for a presentation (http://prezi.com/jie04ey9bhjr/zulo/) that I wa...
-
Unlike normal, I was able to deliver the square version of the descending pentagons quickly. There was no math to figure out. although ...