0

I'm having trouble making an image move left to right in mathematica.

I have the manipulate for a point,

(*Rook Movement*)
Manipulate[
  Graphics[Translate[Point[{0, 0}], {t, t2}], Axes -> True, 
  PlotRange -> {{0, 8}, {0, 8}}], {t, 0, 8}, {t2, 0, 8}]

I also have an image defined as "rook".

How do I replace the Point with my image of a rook?

Thanks!

NeilnGauss
  • 13
  • 3

1 Answers1

3
img = ExampleData[{"TestImage", "F16"}];
Manipulate[
 Graphics[Inset[img, {t, t2}], Axes -> True, 
  PlotRange -> {{0, 8}, {0, 8}}], {t, 0, 8}, {t2, 0, 8}]

enter image description here

agentp
  • 6,849
  • 2
  • 19
  • 37