Skip to content

Instantly share code, notes, and snippets.

@pavelvasev
Last active August 29, 2015 14:22
Show Gist options
  • Save pavelvasev/7390913cb665066fdfb2 to your computer and use it in GitHub Desktop.
Save pavelvasev/7390913cb665066fdfb2 to your computer and use it in GitHub Desktop.
Scene {
Param {
text: "rbig"
min: 1
max: 20
id: rbigParam
}
property var rbig: rbigParam.value
property var step: 15
property var zmax: 30
Spheres {
color: [1,1,0]
radius: 0.35
positions: f()
function f() {
var arr = [];
console.log(111);
for (var i=0; i<360; i+=step) {
var x = rbig*Math.cos( i/57.7 );
var y = rbig*Math.sin( i/57.7 );
var z = i*zmax/360;
arr.push(x);
arr.push(y);
arr.push(z);
}
console.log(arr);
return arr;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment