Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. n = 0.01;
  2. t = Table[Sin[i^2 - j^2], {i, -4, 4, n}, {j, -4, 4, n}];
  3. r1 = ReliefPlot[t,
  4. ColorFunction -> ({Specularity[White, 1], Hue[0.5, 1, 1]} &),
  5. BoxRatios -> {1, 1, 0.7}, LightingAngle -> {Pi/6, Pi/3}];
  6. r2 = ReliefPlot[t,
  7. ColorFunction -> ({Specularity[White, 100], Hue[0.5, 1, 1]} &),
  8. BoxRatios -> {1, 1, 0.7}, LightingAngle -> {Pi/6, Pi/3}];
  9. r3 = ImageData@r1 - ImageData@r2;
  10. {r1, r2, Image[r3]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement