function drawFastHLine(x0, y0, width, color) {
    for (var x = x0; x < x0+width; x++)
        drawPixel(x, y0, color);
}