atree

Just a simple Christmas tree, based on reddit story

  • Owner: anvaka/atree
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Christmas Tree

I found animated Christmas tree on reddit:

reddit tree

Was curious to make it in js. Current results are here: Happy new 2020!. Wish you all great successes and joy, doing what you love!

How it's built?

The tree is built of two spirals. These 11 lines of code render one line on spiral. It includes 3d projection and background shadow. Almost the same as this wiki image:

spiral

It's almost perfect now

EDIT: Thank you reddit. With your help we made it almost perfect. You are awesome!

Huge appreciation goes to @CensoredUsername who made significant improvement.

@Yazuak first gave and implemented idea of how to manage even distribution of points along the curves.

So, what's left? Just small changes which could make this tree perfect:

  • Shadows are not accurate
  • I think code is more complex than it should be (subjectively).

Happy Holidays!

license

MIT

Main metrics

Overview
Name With Owneranvaka/atree
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-12-25 04:14:46
Pushed At2025-01-03 06:00:01
Last Commit At2025-01-02 21:59:57
Release Count0
用户参与
Stargazers Count2.5k
Watchers Count51
Fork Count247
Commits Count63
Has Issues Enabled
Issues Count6
Issue Open Count1
Pull Requests Count5
Pull Requests Open Count1
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private