i want to set Trianglify js for a SVG background but i can't. i can set for a div with the following codes :
var something = document.getElementById('portfolio');
var dimensions = something.getClientRects()[0];
var pattern = Trianglify({
width: dimensions.width,
height: dimensions.height,
x_colors: ['#444', '#555', '#666', '#777', '#888', '#999'],
y_colors: 'match_x',
});
something.appendChild(pattern.canvas());