Articles Tagged "SWFs"

Squarshed Squares

I needed an interesting new linear texture so I made this SWF to generate rectangular shapes with the following characteristics:

  • All corners of each rectangular shape align on a single “X” pattern.
  • The “X” crosses through the center of an invisible rectangle with 90 degree corners.
  • The 90 degree corners are each located at the middle of their respective corner areas.

Getting everything to work the way I wanted was a bit more complicated than I initially expected.  The code for the above SWF looks like this: ...
Read More

PixelWit: The Early Animations

They say, “imitation is the sincerest form of flattery” so I thought I’d flatter Senocular a bit by stealing his “Senocular-The College Years” concept and showing you 2 of my “early” (i.e. bad) animations.

My first early animation is called “Ouch” and I’m proud to say that it’s brilliantly awful. It follows the travels, travails and tribulations of a man with dangerous ideas in the midst of dangerous times. Deemed far too dangerous for society he is forced to pay the price. Did I mention the bit about danger and whatnot? Yes, yes indeed, Danger!

It is with great pleasure that I bring you, “Ouch”:
Read More

Hexadecimal Color Fading Array

A while ago I wrote a Hexadecimal Color Fading Tutorial explaining how to select a single color at any point on a gradient between two specified colors. In that tutorial there was a function which efficiently broke each of the 2 specified colors into their Red, Green and Blue components and then calculated a single new color at a specified point between them.

Here's what the code looks like: ...
Read More

How to Draw a Logarithmic Spiral

What is a Logarithmic spiral? A logarithmic spiral steps around center at an additive rate while stepping away from center at a multiplicative rate. Increasing the distance from center at a multiplicative rate causes the arm of a logarithmic spiral to increase in size as it gets further from center. To illustrate, take a look at this photo of a spiral staircase:

bottom-up view
Photo by: darijus

As you can see in the above photo, the number of steps
Read More

How to Draw a Spiral

This tutorial covers the basic concepts needed to draw a simple spiral with ActionScript. A “simple spiral” or an “Archimedean spiral” is created by moving ‘away from’ and ‘around‘ a central point at a constant additive rate. If that sounds a bit foreign to you, don’t worry it’s nothing new. If you’ve coiled a hose or rope on a flat surface, you have experience working with Archimedean spirals.

Archimedean Spiral
(Photo by Paul Needham)

The most notable characteristic of the simple spiral above is that each coil (a full rotation around center) will always increase the spiral’s radius by the same amount (the width of the rope).

Now that you understand what a simple spiral is, I’d like to jump ahead a bit and show you the final state of our code:
Read More

Eels to Urchins Flash Game

Here’s a Flash game that I’ve been playing with, I call it “Eels to Urchins” for fairly obvious reasons. I still need to develop the levels a little further but it’s at a point where you can give it a try and tell me what you think.

Beating the Chat Noir Kitty

The game called Chat Noir, which can be found in my Ten Fun Flash Games article, was driving Wilhelm crazy so I thought I’d show him that the “frickin cat” can indeed be boxed.

...
Read More

© Sean O'Shell 2007-2024