LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code


    Pixel Art Maker!
    
        


    

Lab: Pixel Art Maker

Choose Grid Size

Grid Height: Grid Width:

Pick A Color

Design Canvas

CSS
body {
    text-align: center;
    color:blue;
}

h1{
    font-family: Monoton;
    font-size: 70px;
    margin: 0.2em;
    color: red;
}

h2 {
    margin: 1em 0 0.25em;
}

h2:first-of-type {
    margin-top: 0.5em;
}

table,
tr,
td {
    border: 1px dotted black;
}

table {
    border-collapse: collapse;
    margin: 0 auto;
}

tr {
    height: 20px;
}

td {
    width: 20px;
}

input[type=number] {
    width: 6em;    
}

tooltipButton
{
    width: 100px;
}

input[type=submit]
{
    background-color: #4CAF50; /* Green */
    boreder:none;
    border-radius:8px ;
    color: white;
    padding: 5px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;

}
#sizePicker
{
  color:green;
}

JS
// Select color input
// Select size input

// When size is submitted by the user, call makeGrid()

function makeGrid() 
{
// Your code goes here!
  $("#pixel_canvas").empty(); /* removes the grid if it is already drawn*/
  var rows=$("#input_height").val();
  var cols=$("#input_width").val();
    for(var r=0;r
Wed, 12/27/2017 - 07:02

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv