Skip to content

leukipp/xmastree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmastree2021

Code and coordinates for Matt's 2021 xmas tree

This repository contains the code and coordinates used for Matt's 2021 Christmas tree, as featured in "My 500-LED xmas tree got into Harvard.".

coords_2021.csv are the coordinates of Matt's 2021 tree in GIFT format.

⚠️ The first few entries are identical because they were scanned incorrectly and so were set to the same value as the first 'correct' LED.

light_fixer.py is the original source code from the video. It corrects coordinates in 'pixel space' but does not convert to GIFT.

Code in the examples folder has been provided by other contributors!

Most of what you need is probably over on the Harvard Graduate School of Design repository: "GSD-6338: Introduction to Computational Design"

Usage

Contributing

You're welcome to contribute! There are a few different places that your PR could target:

  • Small bug fixes, as well as small changes that significantly increase usability, will be accepted directly in to the original code.

  • The examples folder has been created as a place for any effects contained within a single CSV file. Files should be named based on the effect - fire.csv for example.

  • If you've done a bigger bit of work, consider keeping this in your own repository, and opening a PR to update the Further Work section below.

Further Work

Links to larger projects based on this one

  • "MPTree - Matt Parker's Tree Emulator": Load your local GIFT files and CSV light sequences directly on your browser! Useful for quick testing.
  • Xmas Tree Lights Live Coding App: Code the xmas lights directly in the browser and see immediate results. Available online here.
  • GIFT-Simulator: Check online how your CSV animations may look like on a "real" tree. Files published here in the examples folder are automatically retrieved and immediately available.
  • GIFT-Development: Start coding right away with Jupyter Lab notebooks in python, javascript and p5.js.

About

Code and coordinates for Matt's 2021 xmas tree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%