An explanation of basic computer graphics algorithms starting from the primitive setPixel