Apr 1, 2009
Alchemy plasma experiment
Posted by Dennis in Uncategorized • 4 commentsNote: this can be done quicker with pure ActionScript by using paletteMap(). This example is merely an Alchemy example.
Watch the example here.
Here’s an example of how this can be used on a 3D object.
Here’s the C code:
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include “AS3.h”
int* palette;
int* plasma;
int* newPlasma;
int width;
int height;
AS3_Val generatePlasma(void* self, AS3_Val args)
{
int x, y, r, g, b, [...]



