-
• #2
Thanks - I've just filed an issue for that here: https://github.com/espruino/Espruino/issues/1742
So it works fine without centerx/y specified?
-
• #3
yes, that's why I had two
drawImage
calls in my example: the first one looks ok -
• #4
Ah,
I forgot that I removed the properly working call from the example, thus: yes, without specifying centerx/centery, rotation seems to work.
-
• #5
Out of interest, do you have a potential use-case for
centerx/centery
? Because if there isn't a good reason to have them I may just remove them. -
• #6
Well, I was just experimenting with custom clock handles that needed this non-centric rotation point - but, of course, I could also do the required math myself.
Just tell me/us, if you plan to drop that feature. There are other ones which are more important (drawing a bitmap directly from file, for example...)
Good morning!
I was just experimenting with image rotation when I found the following problem:
if you
drawImage
an image including rotation and a non-defaultcenterx
/centery
, the image gets cut in half.Try
in emulator or on watch and see what I mean.