A test of textures.js that shows one approach for creating a "texture scale" that combines individual scales for pattern, size, and color.
See also this discussion on GitHub: https://github.com/riccardoscalco/textures/issues/7
xxxxxxxxxx
<html>
<head>
<script src="https://riccardoscalco.github.io/textures/textures.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.5.0/lodash.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>Texture Test</title>
</head>
<body>
<div id="example"></div>
<script src="createTextureScale.js"></script>
<script src="main.js"></script>
</body>
</html>
https://riccardoscalco.github.io/textures/textures.min.js
https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.5.0/lodash.min.js
https://d3js.org/d3.v3.min.js