You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning,
I'd like to start with canvas/sprites and read and test the SpriteGif example.
Here is my first questions about this subject:
(1)
In all examples I can find, the canvas is made the same size as the display.
(First two Parameter of: Arduino_Canvas(int16_t w, int16_t h, Arduino_G *output, int16_t output_x = 0, int16_t output_y = 0, uint8_t rotation = 0);)
So the contents of the canvas is then transfered to the display by flush() to the position 0,0 as a 1:1 copy. Right?
What I'd like to achieve is a smaller graphic, which is created in the canvas and then punch it to several positions on the display. So I call the constructor with Arduino_Canvas(50, 80, myGFX, myPosX, myPosY, myRotation);
But as far as I could see is that the Output-Pos and Rotation is fix. I did not find a method to change them so that with flush() the canvas is always punched to the same position/rotation.
Or did I missed something. If yes, please give me hint!
[What I was lookin for is something like flush(X, Y)]
(2)
Is it possible to MOVE an existing canvas, that is seen on the Display? (Sprite-Function!) All I can see this moment is to clear the old punch on the screen and then flush the canvas again (if possible to different position. See (1)).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning,
I'd like to start with canvas/sprites and read and test the SpriteGif example.
Here is my first questions about this subject:
(1)
In all examples I can find, the canvas is made the same size as the display.
(First two Parameter of: Arduino_Canvas(int16_t w, int16_t h, Arduino_G *output, int16_t output_x = 0, int16_t output_y = 0, uint8_t rotation = 0);)
So the contents of the canvas is then transfered to the display by flush() to the position 0,0 as a 1:1 copy. Right?
What I'd like to achieve is a smaller graphic, which is created in the canvas and then punch it to several positions on the display. So I call the constructor with Arduino_Canvas(50, 80, myGFX, myPosX, myPosY, myRotation);
But as far as I could see is that the Output-Pos and Rotation is fix. I did not find a method to change them so that with flush() the canvas is always punched to the same position/rotation.
Or did I missed something. If yes, please give me hint!
[What I was lookin for is something like flush(X, Y)]
(2)
Is it possible to MOVE an existing canvas, that is seen on the Display? (Sprite-Function!) All I can see this moment is to clear the old punch on the screen and then flush the canvas again (if possible to different position. See (1)).
Thank you
Beta Was this translation helpful? Give feedback.
All reactions