Skip to content

Tag Archives: c-graphics

In this article, we will discuss how to draw the Indian National Flag using Graphics. Approach: Draw a rectangle using the function rectangle(). Equally, divide… Read More
Prerequisite: graphics.h, How to include graphics.h? The task is to write a C program to draw a Heart using graphics in C. Approach: To run… Read More
Prerequisite: graphics.h, How to include graphics.h in CodeBlocks? The task is to write a C program to draw a smiley face using graphics in C.To run… Read More
Prerequisite: graphics.h, How to include graphics.h in CodeBlocks? In Computer Graphics, we use graphics.h which provide direct functions to draw different coordinate shapes(like circle, rectangle… Read More
Prerequisite: graphics.h, How to include graphics.h in CodeBlocks? The task is to write C program to create a house using graphics. To run the program… Read More
Prerequisite:Comparison among bubble sort, insertion sort and selection sort. Write a C program to plot and analyze the time complexity of Bubble sort, Insertion sort… Read More
Introduction to GTK Many programming languages bolster GUI improvement as one of the centrepieces of its language highlights. C has no such library connected to… Read More
In Layman’s terms, Fractals are beautiful patterns brought into existence upon the intertwining of computation and mathematics. To get a bit technical they are recursive… Read More
Given a rectangle, your task to fill this rectangle using flood fill algorithm. Examples: Input : rectangle(left = 50, top = 50, right= 100, bottom… Read More
The time.h header defines four variable types, two macro and various functions for manipulating date and time. A brief description of the variable types defined… Read More
The header file graphics.h contains outtextxy() function which displays the text or string at a specified point (x, y) on the screen. Syntax : void… Read More
The header file graphics.h contains bar() function which is used to draw a 2-dimensional, rectangular filled in bar. Syntax : void bar(int left, int top,… Read More
The header file graphics.h contains bar3d() function which is used to draw a 2-dimensional, rectangular filled in bar . Coordinates of left top and right… Read More
The header file graphics.h contains arc() function which draws an arc with center at (x, y) and given radius. start_angle is the starting point of… Read More
The header file graphics.h contains setfillstyle() function which sets the current fill pattern and fill color. floodfill() function is used to fill an enclosed area.… Read More