Hey Everyone
Just got my Tidbyt installed and deployed yesterday and want to develop some super simple apps just for fun. FWIW, I’ve completed the Pixlet tutorial using VS Code and I’ve been rendering them locally through my browser on “http://127.0.0.1:8080/“ .
I tried some code below that I found on the forums to display a .png file and render it in my local browser but I’m receiving the following error:
“This won’t fit in 64 pixels # Controls vertical alignment.”
This shouldn’t be the case since I’m explicitly providing the dimensions to render.
My question is whether this is a browser thing which would work “normally” on my Tidbyt (haven’t gotten that far yet).
My end goal here is to display a super basic png/jpg with a scrolling marquee/text of my choice.
On a different note, there are Tidbyt apps that do exactly what I want, I realize the Tidbyt only truly displays images but is the app source available on GitHub generally? Also, I’m not seeing much, if any documentation on the Pixlet language. Is this hiding somewhere on the dark web or are these discussion groups how people are figuring out how to use the language? I’m not trying to do anything more complicated than what I’m seeing on “Reddit Images” . All I want to do is display an image and a marquee. Any help greatly appreciated!
Here’s the code:
load(“render.star”, “render”)
load(“http.star”, “http”)
load(“encoding/base64.star”, “base64”)
def main(config):
img = http.get(‘https://art.pixilart.com/a72d2ef88ded5fd.png’).body()
return render.Root(
delay = 500,
child = render.Box(
child = render.Animation(
children = [
render.Image(
src = img,
width = 20,
height = 20,
),
],
),
),
)