var values = { size: 50, radius: 100, dichte: 10 } function onOptions() { values = Dialog.prompt('graffmaster:', { size: { description: 'size' }, radius: { description: 'radius' }, dichte: { description: 'dichte' } }, values); } function onMouseDrag(event) { for (var i = 1; i < values.dichte; i++) { var rotation = (Math.random() * 360).toRadians(); var rad = new Point(values.radius * Math.random(), values.radius * Math.random()); var center = event.point + rad.rotate(rotation); var newSize = values.size * Math.random(); new Path.Circle(center, newSize) } }