poline
Version:
color palette generator mico-lib
25 lines (24 loc) • 512 B
HTML
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js"></script>
<script src="index.js"></script>
</head>
<body>
<script>
function setup() {
poline.numPoints = 20;
noStroke();
}
function draw() {
poline.shiftHue(1);
let colors = polineColors();
colors.forEach((color, i) => {
let w = width/colors.length;
fill(color);
rect(i*w, 0, w, 100);
});
}
</script>
</body>
</html>