Scan Conversion of a Circle Computer Graphics

A circle is an eight-way symmetric shape. All quadrants of a circle are the same. There are two octants in each quadrant of a circle. If we know the value of any point, then we can easily calculate the values of the remaining seven points by using the eight-way symmetry method. A circle is a shape consist of a line called the circumference. All the straight lines drawn from a particular point within the circle to the circumference are always equal. A circle is a round shape that has no corner or sides.

“A circle can be defined as a combination of points that all points are at the same distance (radius) from the center point.” We can express a circle by the following equation-

                                (P - Pc)2 + (Q - Qc)2 = r2­­­

The above equation can be written as-

                                (P)2 + (Q)2 = r2­ ­                                                  {r = radius}

If we want to draw a circle, then we will consider it by its origin point. Let us assume a point P1(R, S) then we can represent the other seven points as follows-

P2(R, -S)

P3(-R, -S)

P4(-R, S)

P5(S, R)

P6(S, -R)

P7(-S, -R)

P8(-S, R)

Scan Conversion of a Circle

We can also represent eight points of the circle on the computer screen by using of put pixel function ().

Putpixel (R, S, Color)                                    

Putpixel (R, -S, Color)

Putpixel (-R, -S, Color)

Putpixel (-R, S, Color)

Putpixel (R, S, Color)

Putpixel (R, -S, Color)

Putpixel (-R, -S, Color)

Putpixel (-R, S, Color)

Example: Let, we have taken a point (4, 6) of a circle. We will calculate the remaining seven points by using of reflection method as follows-

The seven points are – (4, -6), (-4, -6), (-4, 6), (4, 6), (4, -6), (-4, -6), (-4, 6)

Scan Conversion of a Circle

There are two following standard methods to define a circle mathematically.

  • A circle with a second-order polynomial equation.
  • A circle with trigonometric/ polar coordinates.

A circle with the second-order polynomial equation-

                                  y2 =r2 – x2

Here, x = The coordinates of x

         y = The coordinates of y

r = The radius of the circle

In this method, we will find the x coordinate (90° to 45°) by moving x from 0 to r/?2, and we will find each y coordinate by calculating ?r2-x2 for each step.

It is an ineffective method because for each point x coordinate and radius r must be squaredand subtracted from each other. 

Scan Conversion of a Circle

A circle with trigonometric/polar coordinate-

x = r cos ? 

y = r sin ?

Here, x = The coordinate of x

        y = The coordinate of y

          r = The radius of the circle

          ? = Current angle

In this method, the value of ? moves from 0 to ?/4. We will calculate each value of x and y.

Scan Conversion of a Circle

Algorithms used in Circle Drawing

There are the following two algorithms used to draw a circle.

  • Bresenham’s Circle drawing Algorithm  
  • Mid-point Circle Drawing Algorithm

Related Topics

Display Processor

It is a part of hardware or interpreter which is used to transform display processor code into pictures. It is used to convert digital information from CPU to analog data. It...

4 minutes read.

2D Shearing

We can denote shearing with ‘SHx’ and ‘SHy.’ These ‘SHx’ and ‘SHy’ are called “Shearing factor.” We can perform shearing on the object in two ways- Shearing along x-axis: In this, we...

2 minutes read.

Applications of Computer Graphics

Applications of Computer Graphics Some applications of computer graphics are mentioned below- Graphical User Interface (GUI): It is a way of interacting with a computer using the icon, ...

2 minutes read.

Panning

“Panning is a process or photographic technique that is used to combine slow shutter speed with camera movement to make a speed sense around the moving object.” We can define panning as...

2 minutes read.

Output Devices in Computer Graphics

Computer Graphics Output Devices An output device is a component of hardware or the main physical part of a computer that can be touched and seen. An output device is an electromechanical device. “The...

5 minutes read.

Zooming

In computer graphics, the term “Zoom is referred as a function, focuses on a particular portion or part of an image and also enlarging the image’s size for greater details.” In windows...

2 minutes read.

Clipping in Computer Graphics

“The Clipping is a type of transformation used in computer graphics to remove lines, objects, and segments of lines that are outside the computer screen or viewing pane.” The clipping is a...

2 minutes read.

3D Rotation

The 3D rotation is different from 2D rotation. In 3D Rotation we also have to define the angle of Rotation with the axis of Rotation. For Example- Let us assume, The initial...

2 minutes read.

Line Drawing Algorithm in Computer Graphics

“The Line drawing algorithm is a graphical algorithm which is used to represent the line segment on discrete graphical media, i.e., printer and pixel-based media.” A line contains two points....

3 minutes read.

Input Devices in Computer Graphics

An Input device is the piece of computer hardware equipment used to give input to the computer. The input can be in the form of graphics, text, sound, audio, video,...

7 minutes read.

3D Reflection

The Reflection is a mirror image of the original object. We can differentiate 2D and 3D reflection by adding Z-axis. The Z-axis shows the depth of the surface. In the...

1 minute read.

Polygon Clipping in Computer Graphics

“A Polygon can be described as the enclosed collection or group of the lines.” In a polygon, all lines are connected. Lines can be a combination of edges and vertices,...

4 minutes read.

Color Models in Computer Graphics

"Color model is a 3D color coordinate system to produce all range of color through the primary color set." There are millions of colors used in computer graphics. The light...

3 minutes read.

Midpoint Circle Drawing Algorithm in Computer Graphics

The midpoint circle drawing algorithm helps us to calculate the complete perimeter points of a circle for the first octant. We can quickly find and calculate the points of other...

12 minutes read.

2D Translation

We can move any object from one to another place without changing the shape of the object. For Example- Translation of a Point:If we want to translate a point from P (x0,...

1 minute read.

Illumination Model in Computer Graphics

Illumination Model in Computer Graphics The series of methods used to depict light in computer graphics scenarios is computer graphics illumination. Although lighting strategies provide versatility in the degree of detail...

8 minutes read.

Projection in Computer Graphics

Projection Introduction: The technique projection was invented by the Swiss mathematician, engineer, and astronomer "Leonhard Euler Around" in 1756. The "Episcope" was the first projection system. “Projection is a technique or process which...

4 minutes read.

Scan Conversion of a Circle Computer Graphics

A circle is an eight-way symmetric shape. All quadrants of a circle are the same. There are two octants in each quadrant of a circle. If we know the value of any...

3 minutes read.

Computer Graphics Window

“The process of selecting and viewing an image with different views, called windowing.” All the objects in the real world have a size. We can measure the size and location of...

4 minutes read.

Bresenham’s Line Drawing Algorithm in Computer Graphics

This algorithm was introduced by “Jack Elton Bresenham” in 1962. This algorithm helps us to perform scan conversion of a line. It is a powerful, useful, and accurate method. We...

8 minutes read.