TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: Void777 on October 13, 2021, 12:28:34 PM

Title: Flipping Bitmap Images in Thumby IDE
Post by: Void777 on October 13, 2021, 12:28:34 PM
I've been working with the Thumby IDE for a few days now. I really like it so far. It is very time consuming to draw every sprite then draw it again facing the other direction. Are there any plans of adding a "Flip Vertical"and "Flip Horizontal" Button to the Bitmap editor located at https://tinycircuits.github.io/. If not i think this would be a very useful feature.
Thanks In Advance, Void
Title: Re: Flipping Bitmap Images in Thumby IDE
Post by: Jason on October 13, 2021, 04:25:43 PM
Hi,

We'll definitely consider adding this feature, thanks for the idea.

Other drawing features are also planned: lines, boxes, fill, etc.

Thanks!
Title: Re: Flipping Bitmap Images in Thumby IDE
Post by: Jason on October 19, 2021, 12:13:35 PM
Hi again,

There is a new 'IMAGE' button in the bitmap builder so you can import images (limit being 72 x 40) to the builder and then export to code.

Also, the
Code: [Select]
drawSprite(...) function allows for mirror on the X & Y axes:
Code: [Select]
thumby.display.drawSprite(inspr, x, y, width, height, mirrorX, mirrorY, key)
See the new Thumby API docs: https://github.com/TinyCircuits/tinycircuits.github.io/blob/master/ThumbyAPI.md (https://github.com/TinyCircuits/tinycircuits.github.io/blob/master/ThumbyAPI.md)
Title: Re: Flipping Bitmap Images in Thumby IDE
Post by: Void777 on October 19, 2021, 12:38:42 PM
Hi again,

There is a new 'IMAGE' button in the bitmap builder so you can import images (limit being 72 x 40) to the builder and then export to code.

Also, the
Code: [Select]
drawSprite(...) function allows for mirror on the X & Y axes:
Code: [Select]
thumby.display.drawSprite(inspr, x, y, width, height, mirrorX, mirrorY, key)
See the new Thumby API docs: https://github.com/TinyCircuits/tinycircuits.github.io/blob/master/ThumbyAPI.md (https://github.com/TinyCircuits/tinycircuits.github.io/blob/master/ThumbyAPI.md)

Nice. Thank you so much. Ill incorporate these features into the next update of my game, it might actually decrease the file size as i have so many duplicate images
Title: Re: Flipping Bitmap Images in Thumby IDE
Post by: CoolieCoolster on October 19, 2021, 01:01:03 PM
Other than having the ability to flip bitmaps, is the drawSprite function basically the same as blit then? And many thanks for the image button; I've been using a pixel art website to design my Thumby sprites, so I won't have to draw them a second time now.
Title: Re: Flipping Bitmap Images in Thumby IDE
Post by: Jason on October 19, 2021, 01:17:32 PM
Other than having the ability to flip bitmaps, is the drawSprite function basically the same as blit then? And many thanks for the image button; I've been using a pixel art website to design my Thumby sprites, so I won't have to draw them a second time now.

It actually calls the blit function after flipping the data, so yes.