Go to previous pageGo to next page

1.3. Rasterisation

Learning Objectives

  • You will be able to write down the algorithm for colouring a particular pixel of the screen.
  • You will be able to choose the right pixels of the screen to draw a continuous line.
  • You will be able to explain the different steps of the algorithm for filling polygons.

Introduction

Now you know something about colours in the RGB-Colour Space and their codification, but we still do not know how to tell the computer which pixel on the screen has to feature which colour. In this unit we will learn a simple termalgorithm that solves this problem.

Since it is often not efficient to colour each pixel separately - think of colouring a whole screen that features about one million pixels - we will demonstrate you other algorithms for setting the colour of sequences of pixels.

Drawing lines on a raster display is not that simple as it seems to. Imagine drawing a diagonal straight line by only colouring tiny quadratic elements of a cartesian coordinate system. Colouring the right pixels is not always that easy. We will provide you some solutions.



Go to previous page
Go to next page