HOME | DD

ssjskipp — Playing with Pixels

Published: 2009-09-04 15:26:13 +0000 UTC; Views: 3361; Favourites: 35; Downloads: 71
Redirect to original
Description Edit: Hold LMB to get the pixels to fly back to original space Press space to generate different pixels.


So, I was just toying around. Got bored in my Comp Sci lab (we were installing cygwin, and we all chose THE SLOWEST MIRROR EVER)

It's essentially a bunch of pixels that have their position random, color from a source picture, and fly towards the mouse. Click to generate a new batch of pixels.

I also made it so if the source pixel was darker than 0xFF222222, it wouldn't count. So, the number of pixels varies, but it's set to 30,000 (before I made that color limit, it worked fine with 20,000). There's probably only like, 2 or 3 thousand after color limit.

The image I got the colors from is here:
[link]

Also, I've found a system for scripting that works pretty well. I have Flash CS4 open as well as FlashDevelop. In Flash, I have the .fla, and in FlashDevelop, I have my external .as files associated with that .fla.

This works nice since I can have the best of both worlds, with no slowdown on my computer or anything of the such. Also, if flash crashes, I don't lose all my code.
Related content
Comments: 17

maximathevaporeon [2012-01-09 03:42:16 +0000 UTC]

what does it say!???

👍: 0 ⏩: 0

maximathevaporeon [2011-12-29 04:21:04 +0000 UTC]

mosilla suks

👍: 0 ⏩: 0

sande-2410 [2009-12-22 00:21:50 +0000 UTC]

WoOW it's so cooool

👍: 0 ⏩: 0

sORRYbUTnO [2009-09-20 03:10:38 +0000 UTC]

omg when you leave it alone it looks like a sandstorm!

👍: 0 ⏩: 0

COShoshA [2009-09-05 02:16:24 +0000 UTC]

QUE SARPADO!! *O*

👍: 0 ⏩: 0

wonderwhy-ER [2009-09-04 15:49:00 +0000 UTC]

As for thingy itself it is great Could you please add some modification so that when mouse is down it make picture to no bounce and slowly converge to position where it should be. Just add some dumping multiplier to pixel speeds like multiplying it by 0.7.

👍: 0 ⏩: 2

ssjskipp In reply to wonderwhy-ER [2009-09-04 16:12:16 +0000 UTC]

Oh, I misunderstood -- yes, I can easily do that. xD! I store initial positions, so that's very possible.

👍: 0 ⏩: 2

wonderwhy-ER In reply to ssjskipp [2009-09-04 20:20:48 +0000 UTC]

Hmm I mean in smaller version and still flying near cursor. Like here [link] with text.

👍: 0 ⏩: 1

ssjskipp In reply to wonderwhy-ER [2009-09-05 05:17:56 +0000 UTC]

You mean like, only the area around the mouse? Or scale the image itself smaller?

👍: 0 ⏩: 1

wonderwhy-ER In reply to ssjskipp [2009-09-05 08:48:53 +0000 UTC]

Well now it behaves so that you can't see the image when it moves as it oscillates. I wanted it so that at some settings it dumps oscillations making picture at least more visible but still flying. By no meter still cool Just my mm whim if it is a right word

👍: 0 ⏩: 1

ssjskipp In reply to wonderwhy-ER [2009-09-08 19:41:06 +0000 UTC]

Hey, is it what you were thinking now? Hold the mouse down to use it as the center, and the pixels will go to their correct positions relative.

Also, that number is the # of pixels it's working with. Press space to generate new ones.

Also, just a request, but would you mind if I used a copy of your memory/fps graph/counter?

👍: 0 ⏩: 1

wonderwhy-ER In reply to ssjskipp [2009-09-08 21:21:45 +0000 UTC]

Yeah more fun now Or rather more control.

As for FPS I have old version here in my gallery. As for new one... Need to clean it up/document to publish. Was thinking about it but my life is kind of a mess right now so I am not getting to such simple things...

👍: 0 ⏩: 0

wonderwhy-ER In reply to ssjskipp [2009-09-04 20:14:35 +0000 UTC]

Ok

👍: 0 ⏩: 0

ssjskipp In reply to wonderwhy-ER [2009-09-04 15:51:46 +0000 UTC]

Yeah, I'll play with it a little, see if I can make a LMB hold converge to mouse, release explode out with stored energy. Then shift reset to spacebar or something.

👍: 0 ⏩: 0

wonderwhy-ER [2009-09-04 15:47:10 +0000 UTC]

About FD+CS4. Encountered such style few times when was asked to finish few projects others did not finish. It has it's appeals but it is not best of both worlds. Close tough. But this way you can't develop on frames which means that it will be hard to code animations no?

Sad we can't make our own Actions panel for CS4 I would killed for having FD like code completion in CS4 + other bonuses. Like you have movieclip on stage of Library class "A" named "a" and have a variable c in it on first frame. Or have some other mc in it on stage.
And so Actions panel would see that(it can?!?! both variables, classes, objects on stage and on each frame and all) and show hints. FlashDevelop can't help with that and CS4 actions panel sucks very much... I was even checking if it is possible to modify CS4 Action panel using JSF (internal language that allows to write extensions to CS4 studio and is used to develop custom panels) but did not found ways of manipulating code hinting trough it...

👍: 0 ⏩: 1

ssjskipp In reply to wonderwhy-ER [2009-09-04 15:56:58 +0000 UTC]

It's close enough for me -- any project where I need flash to handle both .as files and .fla is just terrible. There's hardly any code completion, no bracket/parenthesis highlighting, and for me, it tends to slow down when the whole screen is text (no idea why). However, working on frames is a breeze. I never really code directly onto a movieclip's frame. I did stumble across (I don't know if it was from you, or some other source) an undocumented function that enables you to apply a function/actionscript to a movieclip's frame. (more info here [link] )

But yes, some sort of flash extension, or perhaps CS5 will enable something like in-flash support for a FD-esque IDE, would be ideal. They really need to overhaul flash and re-design it from the core to enable both programmer and animator functionality... I keep finding many problems with CS4, and it really seems like they keep building off of Macromedia's age-old program.

👍: 0 ⏩: 1

wonderwhy-ER In reply to ssjskipp [2009-09-04 16:32:35 +0000 UTC]

Yeah seems to me too. What they need really to do is to open up CS5 for developers more so that people like you or me could add our own panels more easier and change behavior of existing to some extent. I wanted to add code completions my self but did not found good documentation on JSF and did not found at all on how to do some things(adding custom hints to Action panels hint dictionary or in any other way messing with code hinting). I find such oneness more important then Adobe built actions panel upgrade. I don't believe they will do all I want anyways even if I start screaming about those features in all possible places so having possibility to add them my self seems to me as a better approach.

👍: 0 ⏩: 0