Message Boards Message Boards

0
|
2115 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Can I use background with texture?

Posted 2 years ago

This is okay.

Animate[Plot3D[h x^2 y, {x, -1, 1}, {y, -1, 1}, PlotRange -> 2, 
  Background -> Blue], {h, 0, 1, .01}]

But I want a background, in the animation, same the picture in the file attachment. Is it possible?

Attachment

Attachments:
POSTED BY: Mariano Gonzalez
2 Replies

Dear Rohit Thank you very much.

POSTED BY: Mariano Gonzalez
Posted 2 years ago

You can experiment with Overlay.

img = Import["~/Downloads/Background.png"];

Animate[Overlay[{
   img,
   Plot3D[h x^2 y, {x, -1, 1}, {y, -1, 1},
    PlotRange -> 2,
    Axes -> None,
    ImageSize -> ImageDimensions@img/2]}],
 {h, 0, 1, .01}]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract