算命用琥珀水晶球

h = DensityPlot3D[
  Sin[x] Cos[y] Sin[z], {x, y, z} \[Element] Ball[{0, 0, 0}, 5], 
  PlotTheme -> "Classic", ColorFunction -> "Rainbow", Boxed -> False, 
  Axes -> False, PlotPoints -> 100]

rotateMeHarder1[g_, vertical_, viewpoint0_, center_List: {0, 0, 0}, 
  nframes_Integer: 15, opts : OptionsPattern[]] := 
 Module[{grlist}, 
  grlist = Table[Show[g, ViewVertical -> vertical,ViewVector -> {RotationMatrix[2 Pi/nframes i, vertical].(viewpoint0 - center) + center, center}, SphericalRegion -> True, opts], {i, 0, nframes - 1}]]

h01list = 
 rotateMeHarder1[h, {0, 0, 1}, {8, 8, 8}, {0, 0, 0}, 50, 
  ViewAngle -> 50 Degree]

Export["amber-crystallBall.gif", h01list, "TransparentColor" -> White, 
 "TransitionEffect" -> "Background", "DisplayDurations" -> 0.1, 
 "AnimationRepetitions" -> Infinity]

ListAnimate@h01list

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值