add more colors

pull/1/head
ansuz 9 years ago
parent cc1814544d
commit 5ce158d2e2

@ -37,6 +37,9 @@
border: 3px solid black; border: 3px solid black;
padding: 5px; padding: 5px;
} }
#copy {
padding-left: 75px;
}
span.palette { span.palette {
height: 50px; height: 50px;
width: 50px; width: 50px;
@ -58,8 +61,10 @@
<canvas id="canvas" width="600" height="600" ></canvas> <canvas id="canvas" width="600" height="600" ></canvas>
<div id="copy">
<h2>Welcome to CryptCanvas!</h2> <h2>Welcome to CryptCanvas!</h2>
<h3>Zero Knowledge Realtime Collaborative Canvas Editing</h3> <h3>Zero Knowledge Realtime Collaborative Canvas Editing</h3>
</div>
<div id="controls"> <div id="controls">
<button id="clear">Clear</button> <button id="clear">Clear</button>

@ -37,7 +37,8 @@ define([
$width.on('change', updateBrushWidth); $width.on('change', updateBrushWidth);
var palette = ['red', 'blue', 'green', 'white', 'black', 'purple', 'gray']; var palette = ['red', 'blue', 'green', 'white', 'black', 'purple',
'gray', 'beige', 'brown', 'cyan', 'darkcyan', 'gold', 'yellow', 'pink'];
var $colors = $('#colors'); var $colors = $('#colors');
$colors.html(function (i, val) { $colors.html(function (i, val) {
return palette.map(function (c) { return palette.map(function (c) {

Loading…
Cancel
Save