-->

28.06.11

Categories: Flash, Graphics

Triangle vectorization

Inspired by the work of Andy Gilmore, specifically work for the new Africa Hitech album on Warp records, (available on Bleep), I was intrigued to be able to create a means of creating triangulated images in Flash.

hitech_01

hyetal_broadcast_640

The Flash version we created uses a square movie clip subdivided into 4 triangles. In the first iteration, the movie sets the colour of each triangle randomly from a list of predetermined colours. This creates a very random image. It might be more expressive to tend towards using the colour of the triangles around to determine the color, with a chance of using a random color.

pattern_02sm

In the second iteration, it uses a bitmap as the generator of the colors. It loads a bitmap image, and then overlays the grid of squares.
Then for each triangle within the square, it uses getPixel to get the colour value in the middle of each triangle. This creates an intriguing triangulated pixel aesthetic.

girl_04sm

Try it here:

Get Adobe Flash player

Further experiments allow us to change the size of the movie clip, creating greater or lesser detail, and creating alternative triangular forms within each square.

Share your love for this story

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

No comments

Have your say

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>