Skip to content

Instantly share code, notes, and snippets.

@Worm4047
Last active September 2, 2017 11:42
Show Gist options
  • Select an option

  • Save Worm4047/16385fafc8802643896078f8bb7c1f7d to your computer and use it in GitHub Desktop.

Select an option

Save Worm4047/16385fafc8802643896078f8bb7c1f7d to your computer and use it in GitHub Desktop.
PIXEL ART MAKER
<!DOCTYPE html>
<html>
<head>
<title>Pixel Art Maker!</title>
</head>
<body>
<h1>Pixel Art Maker</h1>
<h2>Choose Grid Size</h2>
<form id="sizePicker">
<label>Grid Height:
<!-- min and max values are given so as to prevent overflow of grid -->
<input type="number" id="input_height" name="height" min="1" value="1" min="1" max="48" required>
</label>
<label>Grid Width:
<!-- min and max values are given so as to prevent overflow of grid -->
<input type="number" id="input_width" name="width" min="1" value="1" min="1" max="48" required>
</label>
<input type="submit">
</form>
<h2>Pick A Color</h2>
<input type="color" id="colorPicker">
<h2>Design Canvas</h2>
<table id="pixel_canvas"></table>
<script src="designs.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment