Flipping Bitmap Images in Thumby IDE

Started by Void777, October 13, 2021, 12:28:34 PM

Previous topic - Next topic

Void777

***
Full Member
Posts: 16
Logged
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

Jason

Administrator
*****
Hero Member
Posts: 107
TinyCircuits Employee
Logged
Hi,

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

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

Thanks!

Jason

Administrator
*****
Hero Member
Posts: 107
TinyCircuits Employee
Logged
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 drawSprite(...) function allows for mirror on the X & Y axes: 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

Void777

***
Full Member
Posts: 16
Logged
Quote from: 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 drawSprite(...) function allows for mirror on the X & Y axes: 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

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

CoolieCoolster

***
Full Member
Posts: 30
Logged
#4
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.

Jason

Administrator
*****
Hero Member
Posts: 107
TinyCircuits Employee
Logged
Quote from: 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.

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

SMF spam blocked by CleanTalk