{
const svgElem = document.createElementNS(xmlns, "svg");
svgElem.setAttributeNS(null,'width',width);
svgElem.setAttributeNS(null,'height',height);
const border = document.createElementNS(xmlns, "rect");
border.setAttributeNS(null, 'width', width);
border.setAttributeNS(null, 'height', height);
border.setAttributeNS(null, 'fill', 'none');
border.setAttributeNS(null, 'style', 'stroke:rgb(0,0,0);stroke-width:1;');
svgElem.appendChild(border)
const d = 10
const margin = 50
for (var y=margin; y<height-margin; y+=d){
var points=[]
for (var x=margin; x<width-margin; x+=d){
points.push([x+(slider_amplitude_x*Math.cos((x+y)/width*Math.PI*2)),y+(slider_amplitude_y*Math.sin((x+y)/width*Math.PI*2))]);
}
var path = polyline(points);
svgElem.appendChild(path)
}
for (var x=margin; x<width-margin; x+=d){
var points=[]
for (var y=margin; y<height-margin; y+=d){
points.push([x+(slider_amplitude_x*Math.cos((x+y)/width*Math.PI*2)),y+(slider_amplitude_y*Math.sin((x+y)/width*Math.PI*2))]);
}
var path = polyline(points);
svgElem.appendChild(path)
}
return svgElem;
}