color space
This commit is contained in:
@@ -11,7 +11,7 @@ def rgb(r=0, g=None, b=None):
|
|||||||
g = r
|
g = r
|
||||||
if b == None:
|
if b == None:
|
||||||
b = r
|
b = r
|
||||||
return "rgb(%d,%d,%d)" % (r*255, g*255, b*255)
|
return "rgb(%d,%d,%d)" % (b*255, g*255, r*255)
|
||||||
|
|
||||||
#rotate round center
|
#rotate round center
|
||||||
def rrc(tuple, center, angle):
|
def rrc(tuple, center, angle):
|
||||||
|
2
main.py
2
main.py
@@ -6,7 +6,7 @@ import time
|
|||||||
def main():
|
def main():
|
||||||
fb = Framebuffer(device_no=0)
|
fb = Framebuffer(device_no=0)
|
||||||
while True:
|
while True:
|
||||||
img = clock_pillow.draw_clock(pixelformat="RGB", aliasing=4)
|
img = clock_pillow.draw_clock(pixelformat="RGBA", aliasing=4)
|
||||||
fb.show(image=img)
|
fb.show(image=img)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user