Little simple Voronoi diagram demonstration I made, just to put into test my unique color generating class .. which .. actually doesn't work yet :))). Instead I'm using 15 preset colors (that's why you can create only 15 limit points).
Also I wanted to play little bit with bitmapData class as I've never used it before I guess.
Edit: I'll try to upload it with working color generator and unlimited number of limit points asap.
Controls:
- Just click on the white canvas to create limit points.
- Click "Clear" button to erase all limit points.
Definition (as it is written in wikipedia):
Voronoi diagram is a special kind of decomposition of a metric space determined by distances to a specified discrete set of objects in the space, e.g., by a discrete set of points. It is named after Georgy Voronoi, also called a Voronoi tessellation, a Voronoi decomposition, or a Dirichlet tessellation (after Lejeune Dirichlet)
for more info check directly the Wikipedia page.
Showing posts with label as3. Show all posts
Showing posts with label as3. Show all posts
Friday, September 11, 2009
Sunday, August 23, 2009
K-means clustering machine
Small work to demonstrate function of k-means clustering. Just to practice work with flex components.
It's finished finally, I didn't have much time for it. Used Flex 3 + AS3, there's something wrong with memory management but it's working more or less anyway :)
Here's some screenshot:

And here is the link to latest working version:
http://www.paused21.net/off/kmeans/bin/
How to use:
1. Generate some points with 'Generate' button (1-300 points)
2. Click on the white canvas to create some default cluster centers (up to 15)
3. Hit the 'Start' button
4. Now you can use Iteration buttons down there to move and see specific iteration steps.
Edit: Source files can be found Here.
It's finished finally, I didn't have much time for it. Used Flex 3 + AS3, there's something wrong with memory management but it's working more or less anyway :)
Here's some screenshot:

And here is the link to latest working version:
http://www.paused21.net/off/kmeans/bin/
How to use:
1. Generate some points with 'Generate' button (1-300 points)
2. Click on the white canvas to create some default cluster centers (up to 15)
3. Hit the 'Start' button
4. Now you can use Iteration buttons down there to move and see specific iteration steps.
Edit: Source files can be found Here.
Thursday, May 21, 2009
FIT Invaders
My last actionscript work, a very simple invaders-like game I made as a project for my multimedia classes.
The game is only half-finished, missing shop system, bosses and some additional details (which I'm planning to finish during summer), but is playable anyway.


Enjoy!
Play Here!
Edit: Source files can be found Here!
The game is only half-finished, missing shop system, bosses and some additional details (which I'm planning to finish during summer), but is playable anyway.


Enjoy!
Play Here!
Edit: Source files can be found Here!
Thursday, March 19, 2009
Mach-Zehnder interferometer no.2
So, I've finished project for my Optics clases - Mach-Zehnder Interferometer as I've mentioned earliear.
The programming is kind of crappy as I was really in a hurry (3 days of work :)), and actually it has some kind of memory leak I guess, but it was good enough for presentation at school :).
This is how it looks on resized picture. Better click that link :)

You can play with it here: (Slovak only - clickable even if you don't speak it though)
Play with Mach and Zehnders here
To access some interactivity you need to check the "Vložiť objekt" (Insert object) checkbox.
Oh and I can't forget: Made in Flex + AS3 combo as usual.
Next I'm planing to do a game ... (and a good one now :)).
Edit: Source files can be found Here!
The programming is kind of crappy as I was really in a hurry (3 days of work :)), and actually it has some kind of memory leak I guess, but it was good enough for presentation at school :).
This is how it looks on resized picture. Better click that link :)

You can play with it here: (Slovak only - clickable even if you don't speak it though)
Play with Mach and Zehnders here
To access some interactivity you need to check the "Vložiť objekt" (Insert object) checkbox.
Oh and I can't forget: Made in Flex + AS3 combo as usual.
Next I'm planing to do a game ... (and a good one now :)).
Edit: Source files can be found Here!
Wednesday, March 11, 2009
Minesweeper
Minesweeper beta version done. Made in FlashDevelop using Flex and ActionScript 3.
I wanted to make more versions with different sizes of game table, but for now it's only 7x7 with 6 mines. I might add that later, it's not written bad so it shouldn't be that hard.
Controls:
Left click - reveal piece
CTRL + Left click - flag piece
Edit: Source files can be found Here!
I wanted to make more versions with different sizes of game table, but for now it's only 7x7 with 6 mines. I might add that later, it's not written bad so it shouldn't be that hard.
Controls:
Left click - reveal piece
CTRL + Left click - flag piece
Edit: Source files can be found Here!
Saturday, March 7, 2009
Flash Tetris
My first Flex + AS3 application.
Play here:
Tetris
I decided to do tetris because I thought it's one of the easiest things there is to program (such a fool I was :)). It turned out to work a little, even if the code is a terrible mess. (It was a good practice though).

I used FleshDevelop to write all that, and I recommend it to anyone who doesn't want to buy Flex or Flash. (FlashDevelop is free).
Play here:
Tetris
I decided to do tetris because I thought it's one of the easiest things there is to program (such a fool I was :)). It turned out to work a little, even if the code is a terrible mess. (It was a good practice though).

I used FleshDevelop to write all that, and I recommend it to anyone who doesn't want to buy Flex or Flash. (FlashDevelop is free).
Subscribe to:
Posts (Atom)