Coder Social home page Coder Social logo

doctordalek1963 / winter-wonderlights Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.22 MB

A program to render 3D effects on a Christmas tree in real time.

Home Page: https://doctordalek1963.github.io/winter-wonderlights/

License: GNU General Public License v3.0

Rust 96.41% Just 2.76% HTML 0.65% Shell 0.18%
christmas-lights christmas-tree leds mathematics raspberry-pi ws281x

winter-wonderlights's People

Contributors

doctordalek1963 avatar

Stargazers

 avatar

Watchers

 avatar

winter-wonderlights's Issues

`LavaLamp` effect using spheres

The lava lamp effect should function like a lava lamp.

It will have a base colour specified in the config, and the effect will create several sphere shapes of varying sizes, which have colours randomly slightly different from the base colour, large fadeoffs, and which move around at varying speeds.

The frame will blend the colours together (see #1) and the effect loop will be handled by the effect to maintain continuity. The docs currently say that the driver should handle looping the effect, so this must be well documented.

Blending between shapes in a frame

When colouring lights based on the shapes in the frame, the Frame3D struct should have a blend attribute to specify whether or not to blend colours. When false, the frame will render as it currently does, overwriting any previous colours. When true, colours will be blended together instead of overwriting each other.

Care must be taken to ensure that colours are blended evenly and the final colour is independent of shape order. Perhaps this could be done by rendering each shape into a blank vec and only combining them at the end. Maybe there's a more memory efficient solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.