From 8f162092f42c8f3fc214b1aa5b39cd21d45e34f1 Mon Sep 17 00:00:00 2001 From: "rachel.koldenhoven" Date: Sun, 10 Jun 2018 13:15:37 +0530 Subject: [PATCH] colors --- index.js | 2 +- style.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ce39e18..cebfe30 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ for(let y = 0; y < HEIGHT; y++) { document.body.appendChild(canvas); // Palette -const colors = ['red', 'blue']; +const colors = ['#b23232', '#ff4848', '#ff6c6c', '#e59b40', '#ffad48', '#ffc57e', '#e5de40', '#fff748', '#fffa91', '#39cc4b', '#48ff5e', '#91ff9e', '#3248b2', '#4867ff', '#91a3ff', '#6432b2', '#8f48ff', '#bb91ff', '#7c2b99', '#cf48ff', '#e291ff', '#000000', '#323232', '#666666', '#999999', '#cccccc', '#ffffff', '#3a2119', '#512e23', '#754233', '#90675b', '#ac8d84']; const palette = document.createElement('div'); palette.className = 'palette'; for(let color of colors) { diff --git a/style.css b/style.css index c5d3a69..41c151d 100644 --- a/style.css +++ b/style.css @@ -15,6 +15,8 @@ body { .palette { display: flex; + flex-wrap: wrap; + background-color: rgb(229, 229, 229); } .swatch {