Flipping Bitmap Images in Thumby IDE

Void777

  • Full Member
  • ***
    • Posts: 16
    • View Profile
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
    • View Profile
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
    • View Profile
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


Void777

  • Full Member
  • ***
    • Posts: 16
    • View Profile
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

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
    • View Profile
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.
« Last Edit: October 19, 2021, 01:02:38 PM by CoolieCoolster »


Jason

  • Administrator
  • Hero Member
  • *****
    • Posts: 107
  • TinyCircuits Employee
    • View Profile
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