T * sin (t)' ≈ Ornamented Christmas Tree (2013)

by ryeguy_24on 12/25/24, 1:07 AMwith 44 comments
by ryeguy_24on 12/25/24, 1:07 AM

Merry Christmas HN. Ever year, the original T * sin(t) Christmas tree gets posted. This year, I wanted to call out my favorite modification by Silvia Hao. It’s beautiful. One year, I’ll try to add to its beauty. But for now, I’ll just appreciate it. She posted it here: https://community.wolfram.com/groups/-/m/t/175891

by jll29on 12/25/24, 11:22 AM

That's a beautiful animation (and useful maths ;-).

In the spirit of minimalism, Merry Christmas to all HNers with this little but time-tested command:

  $ xmastree 5 9 2024`
                                *
                               ***
                              *****
                             *******
                                *
                               ***
                              *****
                             *******
                                *
                               ***
                              *****
                             *******
                                *
                               ***
                              *****
                             *******
                               ***                              
                               ***                              
                               ***                              
                               *** 
Source: https://github.com/jochenleidner/ltools/blob/main/src/bin/xm...

by Lercon 12/25/24, 9:42 AM

I made this Bauble dweet as a Christmas themed exercise in 2020 https://www.dwitter.net/d/20993

    function u(t) { 
        t||(c.width/=6)  // shrink canvas to 1/6 at t==0
        M=a=>x.filter=a?"none":"blur(1px)brightness(90%"
        M();x.drawImage(c,0,0)
        for(i=n=90;--i;)
          x.fillRect(
           160-S(X=i+t*4)*(1-(v=C(i*n))*v)*n,
           v*n+n,
           4,
           2,
           x.fillStyle="#F"+(i+10),M(C(X)<0))    
    }

with u(t) is called 60 times per second. t: elapsed time in seconds. c: A 1920x1080 canvas. x: A 2D context for that canvas. S: Math.sin C: Math.cos

by foobar1962on 12/25/24, 11:08 AM

My first time seeing it. Thanks for posting, and thanks to HN for being the kind of place that stuff like this gets posted.

by theodpHNon 12/25/24, 8:23 AM

GIF Xmas Tree, GIF Xmas Tree... https://communities.sas.com/t5/Graphics-Programming/Fun-with...

by belteron 12/25/24, 2:03 PM

Happy Festive Season! A nice one from Desmos: https://www.desmos.com/calculator/wgunyn2yd0

by bazzarghon 12/25/24, 1:40 PM

Here's one I did for the bbcmicrobot using a Chaos Game approach

https://bbcmic.ro/?t=8W1n6

by noduermeon 12/25/24, 10:40 AM

I went to Hopscotch in Portland with some friends tonight, tried out the "quantum trampoline" [0]... spent most of my time in socks wondering if that was written in plain ol' javascript or p5. Happy Holidays, folks.

[0] https://www.behance.net/kuflex?locale=en_US#

by theodpHNon 12/25/24, 8:31 AM

A 'Traveling Santa Tour' Through U.S. Capital Cities https://communities.sas.com/t5/New-SAS-User/Fun-With-SAS-ODS...

by theodpHNon 12/25/24, 8:20 AM

Damped Oscillation Xmas Tree https://communities.sas.com/t5/Graphics-Programming/Fun-With...

by Alifatiskon 12/25/24, 11:12 AM

I think this would be perfect on openprocessing.org, I just don't know how to implement that.

by BobbyTables2on 12/25/24, 4:53 AM

Now make 30% of the bulbs randomly burn out :)

by layer8on 12/25/24, 3:03 AM

Or a drill.