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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?