Report as inappropriate.

Avatar-1940_thumb

Builderboy2005 presents ...

2009/10/25

FastImage

I have been expirementing with Writable rasters, and the speed increases they offer, and I have put together this scenario as a Demo to the kind of thinks that can be done with them.

I have implemented writable rasters and a byte based lookup table for fast reading and writing to and from Greenfoot Images, in a handy FastImage class.

The demos that are so far included in this scenario are:
1: Fade Effect. Click to make interesting lines that fade away and blur
2: Fade Effect #2
3: Waves. Exploits a usefull quirk when the color value goes out of bounds ;)
4: Swirl. A cool spinning and whirling effect. Use your mouse to add more to the vat!
5: Plasma. More expirimentation with the color glitch.
6: Paint. Watch it drip and slide, and has interesting rules. Expirimentation with line drawing
7:Tunnel. Use the arrow keys to move around and explore! :P

Use the number keys to switch between the demos.

2437 views / 5 in the last 7 days

11 votes | 0 in the last 7 days

Tags: demo with-source graphics

This scenario is a member of: Scenario showcase, Art, Patterns and Music, sfx


open in greenfoot
Your browser is ignoring the <APPLET> tag.
Avatar-1940_thumbBuilderboy2005

2010/9/26

Thanks :) Im hoping to upload something 9000 times more epic very soon too! It depends on when the new Greenfoot is released though
Pi_thumbPiRocks

2010/10/11

Greenfoot 2.0 is released - I'm waiting...
Avatar-1940_thumbBuilderboy2005

2010/10/11

Haha now that its released i can actually start to finish the demo :P Be patient!
PiPiRocks

2010/10/19

Patience isn't one of my strong points... Its been over a week!!! Can you hurry up and release a prototype? (this waiting is killing me - not enough to stop me programming, naturally, but killing me none the less).
Avatar-1940Builderboy2005

2010/10/19

Well you are just going to have wait a bit longer :P Trust me the wait will be worth it. In the meantime i am updating my armature scenario to better work in Greenfoot2.0 and without any method overloading.
A new version of this scenario was uploaded on Tue Oct 19 20:36:22 UTC 2010 Added a 7th animation using a fun tunnel algorithem
63541_1569440113480_1159787730_1296245_7006399_nAndres

2010/10/19

This is a little over my head. Still, I'm surprised that for() loops that repeat for the images width and height are faster than greenfootImage. Thats awesome
Avatar-1940Builderboy2005

2010/10/19

The reason for its speed is because i am using some very low level access to the actual data that GreenfootImage uses to represent the Image
Avatar-1940_thumbBuilderboy2005

2010/10/26

Lol PiRocks where did you go! I released the game demo you were so eager to see :P
Pi_thumbPiRocks

2010/10/29

Hey! I may love to program (and spend WAY too much time doing it), but I still have a life! I don't check back every day...

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Greenfoot_account_pic_thumb H_large_qkdu_7c00000302ad2f74_thumb Person_thumb Android_1_thumb Rubik_s_cube_thumb No_avatar_thumb Humphreybogart-1_thumb Math_table_thumb No_avatar_thumb No_avatar_thumb Small_thumb