atree

Just a simple Christmas tree, based on reddit story

  • 所有者: anvaka/atree
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者anvaka/atree
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2013-12-25 04:14:46
推送於2025-01-03 06:00:01
最后一次提交2025-01-02 21:59:57
發布數0
用户参与
星數2.5k
關注者數50
派生數247
提交數63
已啟用問題?
問題數6
打開的問題數1
拉請求數5
打開的拉請求數1
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?