Browse Source

fix for position top and left

master
Lars Hoogestraat 12 months ago
parent
commit
42462092ee
2 changed files with 7 additions and 4 deletions
  1. +2
    -2
      addon.py
  2. +5
    -2
      addon.xml

+ 2
- 2
addon.py View File

@ -278,14 +278,14 @@ if __name__ == '__main__':
if direction == Position.top:
index = 0
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)
start += 1
index += 1
if direction == Position.left:
index = 0
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)
start += 1
index += 1


+ 5
- 2
addon.xml View File

@ -18,8 +18,11 @@ Picture credit:
<website>https://hoogi.eu</website>
<email>inbox-kodi@hoogi.eu</email>
<source>https://git.hoogi.eu/snafu/script.service.biaslightmote</source>
<news>v0.1.0
- initial release</news>
<news>
v0.1.1
- fix for position top and left
v0.1.0
- initial release</news>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>


Loading…
Cancel
Save