Menu

RGB Scripts

2013-11-12
2013-11-12
  • tony schuite

    tony schuite - 2013-11-12

    Hi there,

    I have been messing around with WS2801 RGB strips and a nice DMX controller for it.
    Found the sweet RGB matrix feature and started creating my own scripts. Actually... I have been trying to create a script and accidentally made some nice ones. See attachments.

    however: I am not able to create the one I want. I want a line in circular motion. is anyone able to create this?

    regards
    Tony

     

    Last edit: tony schuite 2013-11-12
  • Jano Svitok

    Jano Svitok - 2013-11-12

    Hi Tony!

    I will check your scripts when I find some time.

    For now, I will give you some hints for the circular motion:
    1. here are some line drawing algorithms: http://en.wikipedia.org/wiki/Line_drawing_algorithm

    1. you can compute the endpoints by sin/cos functions (this is most probably obvious)
      Here are some more (perhaps?) interesting links:
    2. http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
    3. https://banu.com/blog/7/drawing-circles/

    Note: I wrote QLC+ enhancement that allows to load an image (PNG/JPG/GIF) to RGB matrix,
    so it's possible to draw the patterns in an image editor. It's still not in the main codebase, so either compile it yourself, or wait until it is included and released.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.