Settings

Theme

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

community.wolfram.com

401 points by ryeguy_24 a year ago · 44 comments

Reader

ryeguy_24OP a year ago

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

  • JadeNB a year ago

    I checked the post, but it's from someone who's far more comfortable with Mathematica than I am, so I hope you won't mind my asking about the maths.

    First, the T vs. t in T * sin(t) doesn't mean anything, right? Second, the ' in the title T * sin(t)' doesn't belong, right?

    Then I think that this is graphing essentially (t * sin(t), t * cos(t), t + something), which is a cone if the something is constant, which I believe it is—and that certainly matches the graph. And the rest is about choosing an aesthetically pleasing step size and accomplishing the lovely twinkling and colors, right?

    • ryeguy_24OP a year ago

      I added the prime in the title to indicate that this version is a bit different from the original t * sin(t) post.

  • Arnavion a year ago

    Silvia Hao's version is the one submitted here to HN, actually.

    • dylan604 a year ago

      Someone was too excited about Santa to actually you know click the link

      • frogulis a year ago

        The GP commenter (ryeguy_24) is the original poster of this article, leaving additional information about what they posted.

        • dylan604 a year ago

          Yeah, and? That was the link that was not clicked. If the person had clicked that link they would have seen why their comment was not helpful.

          • flaminHotSpeedo a year ago

            I think you still misunderstood. ryeguy_24 was *commenting on their own post*

            They obviously clicked the link, because they posted it.

            • dylan604 a year ago

              You still think my comment was about ryeguy instead of the person I replied which is typically how comments flow. If they had clicked the link and read it, they would have seen why ryeguy posted the link that shows the evolution from the ‘original’. I’m really not sure why we’re unable here

              To the point, they even admitted “guilty as charged”. I mean, what’s the cause of the lack of comprehension?

              • Arnavion a year ago

                To beat this dead horse some more, I *had* clicked the link (how else would I know it was Silvia Hao's version that had been submitted?) and *had* read the username of the commenter of https://news.ycombinator.com/item?id=42506146. What I had *not* read was the username of the submitter, and thus did not realize the commenter and submitter were the same person, which recontextualizes the comment in question from "Personally my favorite version is Silvia Hao's that can be found in this discussion thread" to "This image that I submitted is by Silvia Hao and can be found in this discussion thread".

      • acer4666 a year ago

        Some was too excited about Santa to, you know, read the usernames of the submitter and commenter

jll29 a year ago

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...
Lerc a year ago

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
foobar1962 a year ago

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

leeoniya a year ago

https://github.com/anvaka/atree

https://js1k.com/2010-xmas/demo/856

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-...

theodpHN a year ago

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

belter a year ago

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

bazzargh a year ago

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

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

noduerme a year ago

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#

theodpHN a year ago

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

theodpHN a year ago

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

Alifatisk a year ago

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

BobbyTables2 a year ago

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

  • hippich a year ago

    Randomly wouldn't be that bad. But whole segments - way more noticable!

    • nuodag a year ago

      usually a bunch of lights are wired in series, if one burns out all stay dark.

      Find and replace the broken one, and all light again!

layer8 a year ago

Or a drill.

  • block_dagger a year ago

    This is not a drill. It really is Christmas.

    • layer8 a year ago

      The function is neither a drill nor a Christmas tree, but similar to how it happens to look (≈) like a Christmas tree, it also happens to look like a drill. This is what I wanted to point out. It’s a multipurpose function.

    • corobo a year ago

      I wish I had more to add, but I do not. This proper tickled me, thank you. lmao

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection