dom-to-image
Version:
Generates an image from a DOM node using HTML5 canvas and SVG
28 lines (27 loc) • 345 B
CSS
.pixel {
width: 10px;
height: 10px;
float: left;
}
.top {
background-color: rgb(255, 0, 0);
}
.middle {
background-color: rgb(0, 255, 0);
}
.bottom {
background-color: rgb(0, 0, 255);
}
.left {
clear: left;
}
.center {
opacity: 0.4;
}
.right {
opacity: 0.2;
}
#dom-node {
width: 30px;
height: 30px;
}