I want to use only one color with the library trianglify.min.js
The library use colors random.
I want to use only one color with the library trianglify.min.js
The library use colors random.
trianglify
library in Options x_colors, default is 'random'. Specify the color gradient used on the x axis
.
Valid array values should specify the color stops in any CSS format (i.e. ['#000000', '#4CAFE8', '#FFFFFF'])
.
var pattern = Trianglify({
cell_size: 75,
variance: 0.75,
x_colors: ['#fff','#28345A'],
y_colors: 'match_x',
palette: Trianglify.colorbrewer,
color_space: 'rgb',
color_function: false,
stroke_width: 1.51,
width: window.innerWidth-5,
height: window.innerHeight-5,
seed: 'd4hga',
stroke_width: 1.51,
color_function: null
});
document.body.appendChild(pattern.canvas())