Navigation Menu

Skip to content

Commit

Permalink
Update examples nb to use scale instead of radius
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Jun 7, 2018
1 parent 186ab93 commit e29e66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Examples.ipynb
Expand Up @@ -47,7 +47,7 @@
"metadata": {},
"outputs": [],
"source": [
"ball.geometry.radius = 0.5"
"ball.scale = (0.5,) * 3"
]
},
{
Expand All @@ -59,7 +59,7 @@
"import time, math\n",
"ball.material.color = '#4400dd'\n",
"for i in range(1, 150, 2):\n",
" ball.geometry.radius = i / 100.\n",
" ball.scale = (i / 100.,) * 3\n",
" ball.position = [math.cos(i / 10.), math.sin(i / 50.), i / 100.]\n",
" time.sleep(.05)"
]
Expand Down

0 comments on commit e29e66b

Please sign in to comment.