Mercurial > code > home > repos > light9
changeset 1118:92555101ea56
add colorSolid
Ignore-this: 94d80a16d3629a588ccf0320c8a8242b
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 13 Jun 2014 06:52:41 +0000 |
parents | f554ddf74097 |
children | 1d0a0174cff7 |
files | light9/Effects.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/Effects.py Fri Jun 13 05:50:08 2014 +0000 +++ b/light9/Effects.py Fri Jun 13 06:52:41 2014 +0000 @@ -65,6 +65,13 @@ s.which = 'L' s.pixels = [(0,0,1)] * 50 return s + +@register +def colorSolid(which='L', color=[1,1,1]): + s = ColorStrip() + s.which = which + s.pixels = tuple(color) * 50 + return s @register def stack(t, names=None, fade=0):