3D 森林与 Python 引擎
v1
by
a
aka11
Loading...
3D Forest & Python
3D Forest
由 Python 控制的交互式 3D 环境
正在加载森林...
拖动以四处查看
PYTHON 控制台
import js import math # Python can control the 3D scene! # Change fog color js.forestApp.scene.background.setHex(0x0a1a11) js.forestApp.scene.fog.color.setHex(0x0a1a11) # Rotate the left picture slightly js.forestApp.planes.left.rotation.y = math.pi / 2.2 # Move the floor grid down a bit js.forestApp.floor.position.y -= 0.5 print("Scene, rotation and floor grid updated via Pyodide!")
运行脚本
输出