Eulogy For: Spiral Generator
- NG Home
- Flash Portal
- Obituaries
- Spiral Generator
This submission was BLAMMED by our users.
Here is its eulogy, a collection of the kind words written about it while still among the living. They shall live on forever in its place.
06/24/08 – 07/06/09
UPDATE: Sickster made me a GUI! YAY!!! Now it looks cool.
INSTRUCTIONS:
firstly, there IS a back button, it's called the <Space Bar> - that big long bar on your keyboard. I didn't want to clutter the flash up with buttons so I made the <Space Bar> do it.
Input values to change the spiral. I'll quickly explain what all the value do:
Center Point (x,y) - determines WHERE the spiral is spawned. It does not affect the generated spiral.
Starting Values - determines what values r and a start at. The starting value for 'a' can only be between 0 and 360 (as it's an angle) and doesn't actually affect much, merely the starting orientation of the spiral. The starting value for r determines how big of a hole there will be in the middle.
Curve - determines how much of a curve the spiral has. 0 = straight line. Positive numbers give a counterclockwise spiral, Negative numbers a clockwise one.
Speed - how many pixels gets drawn every itineration
Size - determines the max radius for the spiral (300 gets you to the borders of the screen, ~500 will fill even the corners)
Precision - how detailed every curve is. Mesured in distance between pixels.
Colours - determine the RGB values for the different gradient marks
Colour Length - how many pixels it takes to go from one colour to the next
Colours Used - how many of the 6 colours will be used (only up to 6)
----
the actual formula now, for those interested, is as follows (note:this isn't AS code):
r= r+Precision
a=a+(Curve*Precision)
draw at: (r*sin(a),r*cos(a))
----
HINTS:
-The length of the curve will be [(Size-StartingR)/Precisi on] pixels long. You should keep this in mind when determining the RGB values and Speed.
-If the Speed is equal to the length of the curve, it will spawn a single branch every itineration.
----
My first submission to Newgrounds!
I can't draw, I can't animate, I can't do anything really... but I'm good at math! And some other stuff that isn't flash related...
So this is a way to make math both useful and fun! Make cool spiral patterns to grasp your attention for hours and share them with others.
If you find a nice pattern please post it below. If I also think it's nice then I'll add it to the list of presets.
EDIT: I found someone to make me a UI! Don't know how long it'll take 'im, but hang tight!
Also, nobody found any cool formulae?
EDIT2: I updated the save/load methods to make it easier.
Other Formulae:
"Explosion"
5000 x200 x300 x300 x700000 x6 x1 x0 x1 x0.1111 x0 x0 x0 x100 x50 x50 x255 x170 x100 x255 x255 x255 x200 x200 x200 x150 x150 x150
"Heat Rising"
60000 x600 x300 x-200 x255 x6 x1 x200 x0.012 x25.01 x0 x0 x0 x150 x0 x0 x255 x150 x0 x255 x255 x255 x255 x150 x0 x150 x0 x0
Nice Idea.
no way to quit and go back to reconfigure other than manually. Theres no speed or extreme action, not even background music. theres no use in the controls as certain variables hae insignificant effects. Its not so great. But we do see youre a pretty smart guy..
But I'd rather not play it a second time and risk hypnotising my self in front of my computer.
very impressive coding, a fun little thing to play with
but man a back button is needed, other than that, great effort!
You should explain it better though, like how to widen the spiral, increase speed. You know. I just like seeing someone finding something new to do with flash if they can't do something else. Wonderful. You get a 4/5 and a 7/10 for an ugly menu.
This is really cool - I mean, I wouldn't spend a lot of time with it, but I haven't seen a whole lot of stuff like this - I hope you do some other cool stuff with flash.
well since it your first i will help you out, you need to upgrade it or something because it jerks a lot and doesnt go ver fast
It Hert mi leetul hed. Mee Dunt lik math. Ok not really, but complicated. Make a new menu, more examples and this will be even better.
Wow do my eyes deceive me or is something of substance coming down the portal?
This little spiral toy is a lot of fun and I salute your coding expertise.
I hate math but this is actually cute and fun. Kudos to you. :)
It would have been fun to see the coding that was involved in this. I can see how it would be a real time saver when drawing spirals in flash cartoons.
I liked this. It'd be nice if there was a way to reset it after generating a spiral, so I could go back into the game and make modifications to the data I'd already entered.
I was playing around with different values, and I meant to put 10000 for the speed... But I put a lot more zeros than that by accident, and it fried. xD Other than that little glitch, it's lots of fun to play around with.
Unfortunately I suck at math, and since there are so many numbers in this submission, my mind just stops. But I got to press the button and see the trippiness. Good work.
This is very nice, and the coding involved is great! :)
The only reason i didnt give this a ten is because the UI could use some work. It needs to be prettier!
This is very good though, keep it up! :D
it's boring but interesting at the same time.and that makes it interesting to watch.
i especially loved the part that you can make/customize the spiral yourself.
and that's why it gets a 9/4(10/5 due to being your first submission)
Personally I'm also good at maths and this is an example of maths being applied to flash and being FUN XD
You should make a game out of this, like maybe using this spiral engine to say launch objects into the air so that they make a spiral and say, hit a target
Anyway great job.
I found 2 fun patterns
Rainbow:
900 x850 x300 x300 x255 x6 x90 x12 x1 x1 x255 x0 x0 x255 x255 x0 x255 x255 x255 x0 x255 x0 x255 x255 x0 x0 x0 x255
And Spiraly needle launcher (no ideaa how this happened) (DO NOT TRY THIS IF YOU OR YOUR FAMILY HAS A HISTORY OF EPILEPTIC SIEZURES... YOU HAVE BEEN WARNED)
9000 x850 x300 x300 x255 x6 x90 x12 x1 x2 x255 x0 x0 x0 x255 x0 x0 x0 x255 x255 x0 x0 x0 x255 x0 x0 x0 x255
ONce again great job.
Its pretty cool Ill have to give you that.
Ive never done much experimenting in flash, especially not with maths, I guess forced education kinda kills it.
Anyway that was a fun little time waster. You should make it into a full game with bosses and stuff lmao. IDK how that would work.
not bad i made a cool one!!
200 x100 x300 x300 x25 x6 x1 x4 x0.003 x10 x255 x255 x255 x255 x150 x0 x100 x150 x150 x255 x255 x255 x255 x150 x150 x255 x150 x255
600 x300 x300 x300 x300 x2 x1 x4 x0.003 x10 x0 x0 x0 x255 x255 x0 x0 x0 x0 x0 x0 x0 x0 x0 x0 x0 x0 x0
Sunlight
sweet, but no purpose
Its still quite addictive and fun.
Cool effect I managed to make :
100 x850 x300 x300 x255 x6 x12 x0 x1.1 x100 x200 x200 x255 x100 x100 x255 x0 x0 x0 x100 x100 x255 x200 x200 x255 x0 x0 x0
10000 x100 x300 x300 x255 x6 x30 x30 x1.3 x10 x0 x255 x255 x255 x255 x0 x255 x0 x255 x255 x0 x0 x0 x0 x255 x0 x255 x0
Hey, He Can't Review this "Ghey" he says, but he made a real trippy one
60000 x600 x300 x300 x255 x6 x0 x0 x1.9 x25.01 x0 x0 x0 x150 x0 x0 x255 x150 x0 x255 x255 x255 x255 x150 x0 x150 x0 x0
this game rocks and I made a cool one... I call it
spinning forest
205 x200 x300 x300 x123 x6 x1 x0 x0.003 x10 x0 x0 x0 x0 x150 x0 x0 x150 x150 x255 x255 x255 x0 x150 x150 x0 x150 x0
200000 x850 x300 x300 x255 x6 x9 x1 x0.009 x655 x99 x23 x77 x255 x255 x76 x255 x150 x150 x255 x25 x5 x54 x150 x15 x255 x150 x98
Made a spiral, looks pretty cool.
66667 x850 x300 x300 x255 x3 x0 x0 x0.999 x10000000000000000000 x255 x0 x0 x0 x0 x255 x0 x255 x255 x255 x255 x255 x0 x150 x150 x0 x150 x0
i call it the rainbow
this one is mine it hurt my eyes after a while
200 x250 x300 x300 x255 x6 x1 x0 x11 x39 x255 x10 x255 x0 x10 x255 x255 x30 x255 x0 x255 x255 x255 x255 x255 x255 x255 x255
lean from your computer a bit and watch this
30000 x200 x300 x300 x500 x4 x6 x2 x1 x0.5 x255 x0 x0 x255 x255 x0 x0 x255 x0 x0 x0 x255 x0 x0 x0 x0 x0 x0