How do you develop code for move in the opposite axis the ball inside two canvases?

I'm trying to create a simetric draw using canvas and ball but, I can't move the ball in the opposite direction.
someone try some like this before?

dibujo

it should be drawn where the red line is

Are your two canvases of a fixed size, e.g. set by pixels e.g. 200x200 ? (this makes the solution easier)

c1 x = 200   c1 y = 20
c2 x = 0     c2 y = 20

yes, they are of the same size but, i don't know how to code the solution, help please :frowning:

A simple example

image

image

the same for the y axis? cause i try it and works!!! you are awesome AWESOME!!!!

Could you not use one Canvas with the squares drawn on it?

1 Like

You can....


image

image

but more blocks code needed to avoid possible unwanted results....

image

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.