blitting

Perlin Noise

Sunday, August 8th, 2010

Perlin Noise is another example of how random generation can yield an expected result unique to each instance implemented.

Tags: , , ,

Sierpinski Triangle case study – setting pixels with bitmap data

Sunday, August 8th, 2010

Continuing on this random trend, from chaos comes order as we start to approach blitting with bitmap data. Chaos Theory is a good corollary to the philosophy of the Blitting SDK. By defining the behavior of systems, we can obtain an expected result with some threshold unique to each instance. To model this, a case [...]

Tags: , , ,

Random color visualization

Friday, July 30th, 2010

Using the visualization code from the previous post, let’s apply a verification of RandomColor and Color classes for unit testing. In the following three examples, 50, 500, and 5000 colors are generated with each distribution of color graphed in a separate visualization. RandomColor generates random color values, Color gets RGB values, and a Timer provides [...]

Tags: , , , ,

RGB color palette

Friday, July 30th, 2010

For reference, source of Blitting’s ColorPalette class:

Tags: , , ,

RGB color palette study

Friday, July 30th, 2010

Let’s add color and combine a RGB color study. Blitting features a convenient ColorPalette class which contains an integer (hex) enumeration of default X11 RGB X colors. Each color name is defined as a String with a list of all possible colors available via the Colors static member: 1 2 3 import com.jasonsturges.labs.blitting.color.ColorPalette;   var [...]

Tags: , , , ,

Extending RandomTimer – FunctionTimer

Friday, July 30th, 2010

Extending RandomTimer is easy, with a handler for onTimerEvent built in. Let’s try an example – FunctionTimer, a class that inherits RandomTimer (therefore inheriting flash.utils.Timer) which maintains a collection of function pointers. At random intervals, all functions within the Vector of Functions is executed. Example class: FunctionTimer 1 2 3 4 5 6 7 8 [...]

Tags: , , , ,

Random Timer

Friday, July 30th, 2010

Using the pattern demonstrated by RandomText, let’s implement Blitting’s randomized timer class RandomTimer. Inheriting from flash.utils.Timer, RandomTimer dispatches TimerEvent.TIMER and TimerEvent.TIMER_COMPLETE at random delays. Example implementation: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [...]

Tags: , , , ,

Random Text

Thursday, July 29th, 2010

Blitting offers many random generation routines. Let’s start with an example implementation of Blitting’s RandomText: 1 2 3 import com.jasonsturges.labs.blitting.text.RandomText;   var char:String = RandomText.character(); Above, a random character is generated and returned as a String. Four character sets are native: Upper Case Alphabet Lower Case Alphabet Numbers Symbols These sets represent two things: Individual [...]

Tags: , , ,

Blitting SDK

Wednesday, July 28th, 2010

Promoting functional units from my private development in to a new framework, I’m introducing a new API named “Blitting”. Distributed as an ActionScript 3.0 SWC, this library is focused in bit BLIT, rendering, layout, double and multiple buffering while maintaing performance oriented design. Performance metrics will be available in a soon to be released Profiler [...]

Tags: , , , , , , ,