HZRN.COM
welcome to my space
X
Economics | Home Improvement | Ezines and Newsletters | Crockpot Recipes | Hardware | Cosmetics | Vans | Careers | Related articles
Search:  
Welcome to:hzrn.com
NAVIGATION: Home >>
freeskier89→ 4. Circular Space Filling
Published by: jack 2010-03-20
  • Here is a circular space filling thing I made a while back, and modified to code to meet the guidelines. I know you guys are going to say I copied Chaoswarp, but actually I didn't. You can ask jerez_z if you wish, for I posted this at ffiles long before the contest began (http://ffiles.com/view_listing.php?sid=94&cat=18).


    The motion was inspired by chaoswarp though, and I will make sure to give him part of the prize if I win with this one:hugegrin: function MaxRadius(center1, dist) {
    for (var n = 0; n (dist>225 dist<1) ? dist=[1, 225][int(dist>225)] : null;
    return dist;
    }
    MovieClip.prototype.FollowPoint = function(p) {
    this._x = this._x+(p.x-this._x)/36;
    this._y = this._y+(p.y-this._y)/36;
    };
    function DrawCircle(center, radius) {
    circle = _root.createEmptyMovieClip("circle"+(depth++), depth);
    circle._x = 200+300*Math.cos(Math.random()*Math.PI*2);
    circle._y = 200+300*Math.sin(Math.random()*Math.PI*2);
    circle._alpha=0;
    circle.center = center;
    circle.radius = radius;
    circle.onPress = function(){
    this.removeMovieClip();
    }
    stack==undefined ? stack=[circle] : stack.push(circle);
    circle.lineStyle(radius/2+2, Math.min(radius*3,200) <<16 Math.min(radius*3,200) <<8 0, 100);
    circle.moveTo(radius, 0);
    for (var t = 0; t<=Math.PI*2; t += Math.PI/30) circle.lineTo(radius*Math.cos(t), radius*Math.sin(t));
    circle._width = circle._height=radius*2.4;
    circle.onEnterFrame = function() {
    ((this.center.x >= this._x-.5 && this.center.x <= this._x+.5)&&(this.center.y >= this._y-5 && this.center.y <= this._y+5)) ? this.onEnterFrame = null : (this.FollowPoint(this.center) , this._alpha+=3);
    };
    }
    drawCircle({x:random(Stage.width), y:random(Stage.height)}, 30+random(70), 0);
    onEnterFrame = function () {
    (maxRadius(center={x:Math.random()*Stage.width, y:Math.random()*Stage.height}, 400)>3) ? drawCircle(center, maxRadius(center, 400)) : null;
    };Click on a circle to remove and have more smaller circles be generated in it. Refresh the page to get a whole new configuration.

    Hope you like it!
    -freeskier89 :)
  • Flash Space Filling 2.0 (file 113)::
    Adobe flash source file - I took freeskier89s Space Filler and I redid it using ALL (1165) 3 Dimensional (63) ActionScript (143) Animations (115) Bitmap
    http://www.ffiles.com/flash/fractals/space_filling_2_0_113.html
    HOME


  • i think it has something to do with levels.... but i dont see any instances of .getNextHighestLevel()


  • good work. yeah, i can click some but not others.


  • Very nice Brandon :love:

    It pwns hahaha J/K :D


  • Neat! The circles reminded me of http://www.acidtwist.com :)


  • i think it has something to do with levels.... but i dont see any instances of .getNextHighestLevel()
    That's probably a good thing since it's MovieClip.getNextHighestDepth() :ne:


  • I think the minimum thickness should be a bit larger. I dislike the hairline ones.


  • Absolutely awesome! One of my favorites so far. :D


  • Treatkor, It would be kind of a pain to add your suggestion, and I am running out of time :(
    yeah i know. i was kidding about filling the interior space too. i think what you have looks excellent.


  • Alright I finally fixed the problem... I think it had to do with one or more of the following
    1. Browsers cacheing the old file
    2. One depth being undefined
    3. Not creating the movieclips specifically at the root level (I doubt it though)

    Oh, and I increased the minimum linewidth nokrev :D


  • NICE!!!


  • yeah i was wondering why they seemed clickable. What does it do wehn ya click on it?


  • :lol: Nokrev

    Here you are master nokrev :D See the first post as usual :P

    (Finally, this is my last update on this file)


  • Thanks! It is acting really wierd. I should just take out the clicking thingy.


  • Thanks for mentioning me :), I did completely invent the idea of filling space with object all on my own, that whole fill a cup with water that was me. ;)

    Actually this thing looks extremly cool. I really like it.

    I am pushing for us both winning, that way space fitting project rule! Thats right I am starting a space fitting gang.

    Either way great code! Glad to see other coders into the artistic side of programming :)


  • hmmm


  • It removes the movieclip causing that area to be refilled. I don't have a clue why its not working. :( It works in flash.


  • Niiiiiiiiiiiiiiiiiiice!:cool:


  • YAY i love it :P

    we need more of these comps. the results are really beautiful to watch sometimes :P


  • greatly improved! i really like this one :thumb:
    how hard would it be to do a version where it fills in the space inside of the circles too? ;)


  • same here, good job nonetheless!


  • Not sure if it's intentional, but after a while all the circles start disappearing.


  • nice :thumb:


  • Great work :thumb: - strange about the buttons though, I can click some and not others :tb:


  • post a swf:D


  • Alright nokrev, I upped the saturation of the colors. I think it looks much better :)

    Treatkor, It would be kind of a pain to add your suggestion, and I am running out of time :(


  • Blast. It's perfect. ;)

    I can't come up with anything else… :(


  • Awesome! :thumb:

    But, since I'm a judge… I'm gonna perfect it. You should make the range of colors be bigger, so it can be a bit darker. ;)

    Also, why does it form such a small square in the middle of the window? It should fill the entire window. :)

    Sorry for nit-picking. I already love it. ;)


  • Thanks. :D

    It's really cool now. Try adding some random alpha to the circles, and increasing the saturation (make them greener). That'd be cool ;)


  • Thanks Darkmotion! :D Defective, are you defective lol? jk. There is a swf there. For some reason the clicking on circles isn't working. hmm...


  • I love these kina abstract things like levitated.net experiments :P - keep up the good work


  • :)
    very nice freeskier


  • It looks really cool. I didn't even know it had a clicking feature :)





  • Microsoft Unleashes Visual Studio .NET
    IBM's iPhrase Buy Adds to WebSphere
    PRINT Add to favorites
  • menu icons do not appear in ff
  • form beforeaction beforesend or similar how
  • typeahead dropdrown refresh icon error
  • how can i draw an underline in a tab to look like a hotkey
  • problem with pagination
  • showing grand total group summary
  • funny listener bahaviour
  • solved how to make a function excute when all the panel has buit
  • dynamic portlet adding during onready adds to first tab but not second
  • treepanel goes on an infinite loading when leaf is set to false
  • using jsonstore with nested json
  • form with grid
  • possible bug collapsing panel with form fields
  • is it possible to abort an element updater from a global handler

  • treepanel doesn t load data dynamically
  • grid xml store
  • in firefox the ext getbody mask method doesn t blotted out the whole page
  • radiogroup and background color
  • how to pass multiple variables to a render function
  • asp net control in an ext window can t run server side events
  • grids with php ajax of course
  • problem workaround for combo box grid cell editor
  • help with form layout
  • ext htmleditor focus problem
  • how to change the root node of a treepanel
  • 2 2 problems with combobox
  • xml data loading local vs remote
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about freeskier89→ 4. Circular Space Filling , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hzrn.com        Site made:CFZ