Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Snow Flakes

  1. #1
    Join Date
    Nov 2006
    Location
    IA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Snow Flakes

    1) Script Title: How do I change the size of the flakes?

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ownoimages.htm

    3) Describe problem: I want to make the snowflakes bigger

  2. #2
    Join Date
    Dec 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Change the image?

  3. #3
    Join Date
    Nov 2006
    Location
    IA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I mean the one without images that just have all the small white dots going on your screen

  4. #4
    Join Date
    Dec 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Havnt instaleld it so im not sure which..

    but it is either one fo these:

    h = rh - 2;
    w = rw - 2;
    }

    else{
    h = r.clientHeight - 2;
    w = r.clientWidth - 2;
    }
    }
    Probs boths.. try changing them to 10 and see what happens and let me know..

    Thats is your snow.js file batherway

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Nothing much, those calculations involve the dimensions of the window.

    One thing you have to realize with this script is that the 'snowflakes' are just divisions. If they get too big, you will see that they are square. There is a little wiggle room though, at least at 1440 x 900 res. At lower resolutions, any increase of size would probably make their square shape readily apparent.

    If you want to go ahead, replace this:

    Code:
    document.write('<div id="flake'+(idx+i)+'" style="position:absolute;top:0px;left:0px;width:'
    +sfs[i]+'px;height:'+sfs[i]+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>');
    with:

    Code:
    document.write('<div id="flake'+(idx+i)+'" style="position:absolute;top:0px;left:0px;width:'
    +Math.floor(sfs[i]*1.5)+'px;height:'+Math.floor(sfs[i]*1.5)+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>');
    This will basically make them 50% larger. If you use 2 instead of 1.5, they will be twice as big but, at that size, even on my relatively hi-res monitor, they looked more like ice cubes or dandruff than snowflakes.

    My suggestion would be to use a script with images if you want them much larger.
    Last edited by jscheuer1; 12-20-2006 at 07:40 AM. Reason: enhance comentary
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is there a way that I can save this snow as a gif?

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by snoopybabydoll View Post
    Is there a way that I can save this snow as a gif?
    You don't really mean that, do you? If you do, you could do a screen capture (in Windows hit Ctrl-PrtSc) and paste the result into an image program. Crop as desired and save as a .gif.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Nov 2006
    Location
    IA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanx, i did not want them that much bigger, just bigger than little dots, but I can figure the rest out with the script I gave.

  9. #9
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    You don't really mean that, do you? If you do, you could do a screen capture (in Windows hit Ctrl-PrtSc) and paste the result into an image program. Crop as desired and save as a .gif.
    It didn't work. I really would like to save the snow somehow. It's beautiful, but the Ctrl-PrtSc did not work for me. Is there another way that I can save it? I just love the snow because it's simple and real whereas the other snowflakes are kinda unrealistic.


    By the way, thanks for getting back to me.

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by snoopybabydoll View Post
    It didn't work. I really would like to save the snow somehow. It's beautiful, but the Ctrl-PrtSc did not work for me. Is there another way that I can save it? I just love the snow because it's simple and real whereas the other snowflakes are kinda unrealistic.


    By the way, thanks for getting back to me.
    Oh, I'm sorry then and I gave you the wrong information. You just need to hit PrtSc by itself to capture a screen image. Otherwise, what I told you will work. I don't know what I was thinking, it hasn't been like what I told you since DOS. (slaps his forehead)
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •