# Generating grid patterns

**URL:** <https://forum.kirupa.com/t/generating-grid-patterns/42283>\
**Category:** flash\
**Created:** [February 7, 2004, 6:55am UTC](https://forum.kirupa.com/t/generating-grid-patterns/42283 "2004-02-07T06:55:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ds\_](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@ds\_](https://forum.kirupa.com/u/ds_)\
**Post date:** [February 7, 2004, 6:55am UTC](https://forum.kirupa.com/t/generating-grid-patterns/42283/1 "2004-02-07T06:55:26Z")

</div>

I’m trying to generate some simple grid patterns, working from the tutorial here : [http://www.kirupa.com/developer/actionscript/grid.htm](http://www.kirupa.com/developer/actionscript/grid.htm)

In particular I am trying to make a diamond shape similar to this : ![](http://darcy.co.nz/diamond.gif) But am struggling with the math as to how I can identify this pattern from my grid.

if any one has any links or code that may be helpful, that would be great.

I have attached the .FLA I am working from if you want to take a look.

thanks! :trout:
