fix for position top and left
This commit is contained in:
parent
fae3804518
commit
42462092ee
4
addon.py
4
addon.py
|
@ -278,14 +278,14 @@ if __name__ == '__main__':
|
||||||
if direction == Position.top:
|
if direction == Position.top:
|
||||||
index = 0
|
index = 0
|
||||||
while start < stop:
|
while start < stop:
|
||||||
pixel = image.getpixel((0, start))
|
pixel = image.getpixel((start, 0))
|
||||||
mote.set_pixel(channel, abs(index-inv_index), pixel[0], pixel[1], pixel[2], brightness)
|
mote.set_pixel(channel, abs(index-inv_index), pixel[0], pixel[1], pixel[2], brightness)
|
||||||
start += 1
|
start += 1
|
||||||
index += 1
|
index += 1
|
||||||
if direction == Position.left:
|
if direction == Position.left:
|
||||||
index = 0
|
index = 0
|
||||||
while start < stop:
|
while start < stop:
|
||||||
pixel = image.getpixel((start, 0))
|
pixel = image.getpixel((0, start))
|
||||||
mote.set_pixel(channel, abs(index-inv_index), pixel[0], pixel[1], pixel[2], brightness)
|
mote.set_pixel(channel, abs(index-inv_index), pixel[0], pixel[1], pixel[2], brightness)
|
||||||
start += 1
|
start += 1
|
||||||
index += 1
|
index += 1
|
||||||
|
|
|
@ -18,8 +18,11 @@ Picture credit:
|
||||||
<website>https://hoogi.eu</website>
|
<website>https://hoogi.eu</website>
|
||||||
<email>inbox-kodi@hoogi.eu</email>
|
<email>inbox-kodi@hoogi.eu</email>
|
||||||
<source>https://git.hoogi.eu/snafu/script.service.biaslightmote</source>
|
<source>https://git.hoogi.eu/snafu/script.service.biaslightmote</source>
|
||||||
<news>v0.1.0
|
<news>
|
||||||
- initial release</news>
|
v0.1.1
|
||||||
|
- fix for position top and left
|
||||||
|
v0.1.0
|
||||||
|
- initial release</news>
|
||||||
<assets>
|
<assets>
|
||||||
<icon>resources/icon.png</icon>
|
<icon>resources/icon.png</icon>
|
||||||
<fanart>resources/fanart.jpg</fanart>
|
<fanart>resources/fanart.jpg</fanart>
|
||||||
|
|
Loading…
Reference in New Issue