0 6

Computer Graphics05 marksBresenham's line drawing algorithm

Derive the Bresenham's decision parameter to draw a line with negative slope.

Derive the Bresenham's decision parameter to draw a line with negative slope. [5]

For a line with negative slope (m < -1 or -1 < m < 0), we move from point (x₀, y₀) to (xₙ, yₙ) where: - x increases (or stays same) - y decreases We assume the line equation: y = mx + c where m is negative At each step, we are at pixel (xₖ, yₖ). We must choose between two candidate pixels: - P₁: ...

Up nextDifferentiate between parallel and perspective projection.