world-of-c-programming.blogspot.in - Graphics Lab









Search Preview

World of C Programming: Graphics Lab

world-of-c-programming.blogspot.in
This is an try to put the solutions of all problems related to C and C++. Labs: DSA, DAA, OS, Graphics, Compiler, Network. Extra: PROBLEMS, FORUM.
.in > world-of-c-programming.blogspot.in

SEO audit: Content analysis

Language Error! No language localisation is found.
Title World of C Programming: Graphics Lab
Text / HTML ratio 28 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud = Lab cy int y1 x1 putpixelcx long Sharma gm ►  Graphics x2 DETECT dy px py < rx2 y2
Keywords consistency
Keyword Content Title Description Headings
= 58
Lab 26
cy 22
int 15
y1 14
x1 13
Headings
H1 H2 H3 H4 H5 H6
1 12 5 0 0 0
Images We found 26 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
= 58 2.90 %
Lab 26 1.30 %
cy 22 1.10 %
int 15 0.75 %
y1 14 0.70 %
x1 13 0.65 %
putpixelcx 13 0.65 %
long 11 0.55 %
Sharma 11 0.55 %
gm 10 0.50 %
►  10 0.50 %
Graphics 10 0.50 %
x2 10 0.50 %
DETECT 9 0.45 %
dy 9 0.45 %
px 8 0.40 %
py 8 0.40 %
< 8 0.40 %
rx2 8 0.40 %
y2 8 0.40 %

SEO Keywords (Two Word)

Keyword Occurrence Density
p = 12 0.60 %
Graphics Lab 10 0.50 %
4 putpixelcx 10 0.50 %
y 4 9 0.45 %
= DETECT 9 0.45 %
putpixelcx x 8 0.40 %
x cy 8 0.40 %
cy y 8 0.40 %
cy x 8 0.40 %
printfEnter the 7 0.35 %
Mangi Lal 6 0.30 %
Lal Sharma 6 0.30 %
C basic 6 0.30 %
cx cy 5 0.25 %
= long 5 0.25 %
initgraphgd gm 5 0.25 %
DETECT gm 5 0.25 %
gd = 5 0.25 %
int gd 5 0.25 %
void main 5 0.25 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
cy y 4 8 0.40 % No
x cy y 8 0.40 % No
putpixelcx x cy 8 0.40 % No
y 4 putpixelcx 7 0.35 % No
4 putpixelcx x 6 0.30 % No
Mangi Lal Sharma 6 0.30 % No
author Mangilal Sharma 5 0.25 % No
Labels Graphics Lab 5 0.25 % No
void main int 5 0.25 % No
ThisBlogThisShare to TwitterShare 5 0.25 % No
to Pinterest Labels 5 0.25 % No
c author Mangilal 5 0.25 % No
FacebookShare to Pinterest 5 0.25 % No
to FacebookShare to 5 0.25 % No
TwitterShare to FacebookShare 5 0.25 % No
Turbo c author 5 0.25 % No
to TwitterShare to 5 0.25 % No
Pinterest Labels Graphics 5 0.25 % No
Email ThisBlogThisShare to 5 0.25 % No
compiler Turbo c 5 0.25 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
x cy y 4 8 0.40 % No
putpixelcx x cy y 8 0.40 % No
cy y 4 putpixelcx 7 0.35 % No
y 4 putpixelcx x 6 0.30 % No
4 putpixelcx x cy 6 0.30 % No
TwitterShare to FacebookShare to 5 0.25 % No
compiler Turbo c author 5 0.25 % No
ThisBlogThisShare to TwitterShare to 5 0.25 % No
to TwitterShare to FacebookShare 5 0.25 % No
FacebookShare to Pinterest Labels 5 0.25 % No
to Pinterest Labels Graphics 5 0.25 % No
Pinterest Labels Graphics Lab 5 0.25 % No
gd = DETECT gm 5 0.25 % No
c author Mangilal Sharma 5 0.25 % No
Turbo c author Mangilal 5 0.25 % No
Posted by Mangi Lal 5 0.25 % No
to FacebookShare to Pinterest 5 0.25 % No
int gd = DETECT 5 0.25 % No
by Mangi Lal Sharma 5 0.25 % No
Mangi Lal Sharma at 5 0.25 % No

Internal links in - world-of-c-programming.blogspot.in

Welcome
World of C Programming: Welcome
C basic lab
World of C Programming: C basic lab
C++ basic Lab
World of C Programming: C++ basic lab
DSA Lab
World of C Programming: DSA Lab
DAA Lab
World of C Programming: DAA Lab
OS Lab
World of C Programming: OS Lab
Graphics Lab
World of C Programming: Graphics Lab
Compiler Lab
World of C Programming: Compiler Lab
Network Lab
World of C Programming: Network Lab
PROBLEMS
World of C Programming: PROBLEMS
FORUM
World of C Programming: FORUM

World-of-c-programming.blogspot.in Spined HTML


World of C Programming: Graphics Lab World of C Programming This is a try to put the solutions of each possible problem related to C and C++. You can find here C vital lab, C++ vital Lab, Data Structure Lab, DAA Lab, Operating System Lab, Graphics Lab, Compiler Lab, Network Lab, and other problems. Pages Home Welcome C vital lab C++ vital Lab DSA Lab DAA Lab OS Lab Graphics Lab Compiler Lab Network Lab PROBLEMS FORUM Showing posts with label Graphics Lab. Show all posts Showing posts with label Graphics Lab. Show all posts Sunday, 23 June 2013 Midpoint ellipse drawing algorithm /* compiler- Turbo c++ author- Mangilal Sharma =================================*/  #include<graphics.h>#include<conio.h>#include<stdio.h>void plotpoints(int cx, int cy, int x, int y){    putpixel(cx + x, cy + y, 4);    putpixel(cx - x, cy + y, 4);    putpixel(cx + x, cy - y, 4);    putpixel(cx - x, cy - y, 4);}void main(){    int cx, cy, rx, ry;    printf("Enter the part-way ");    scanf("%d%d", &cx, &cy);    printf("x radius : ");    scanf("%d", &rx);    printf("y radius : ");    scanf("%d", &ry);    long rx2 = (long) rx * rx;    long ry2 = (long) ry * ry;    long trx2 = 2 * rx2;    long try2 = 2 * ry2;    long p, x = 0, y = ry;    long px = 0;    long py = trx2 * y;    p = (long) ((ry2 - (rx2 * ry) + (0.25 * rx2)) + 0.5);    int gd = DETECT, gm = DETECT;    initgraph(&gd, &gm, "");    cleardevice();    putpixel(cx, cy, 15);    while (px < py) {    plotpoints(cx, cy, x, y);    x++;    px += try2;    if (p < 0)        p += ry2 + px;    else {        y--;        py -= trx2;        p += ry2 + px - py;    }    }    py = trx2 * y;    px = try2 * x;    p = (long) ((ry2 * (x + 0.5) * (x + 0.5) + rx2 * (y - 1) * (y - 1) - rx2 * ry2) + 0.5);    while (y >= 0) {    plotpoints(cx, cy, x, y);    y--;    py -= trx2;    if (p > 0)        p += rx2 - py;    else {        x++;        px += try2;        p += rx2 - py + px;    }    }    getch();} /*=============================19Nov.,2010=============================*/   Posted by Mangi Lal Sharma at 6/23/2013 12:15:00 am No comments: Links to this post Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Graphics Lab Midpoint whirligig drawing algorithm /* compiler- Turbo c++ author- Mangilal Sharma ================================= Midpoint whirligig algorithm=================================================*/  #include<graphics.h> #include<conio.h> #include<stdio.h> void plotpoints(int x, int y, int cx, int cy) {     putpixel(cx + x, cy + y, 4);     putpixel(cx - x, cy + y, 4);     putpixel(cx + x, cy - y, 4);     putpixel(cx - x, cy - y, 4);     putpixel(cx + y, cy + x, 4);     putpixel(cx - y, cy + x, 4);     putpixel(cx + y, cy - x, 4);     putpixel(cx - y, cy - x, 4); } void main() {     int cx, cy, x = 0, y, r, p;     int gd = DETECT, gm = DETECT;     clrscr();     printf("Enter the part-way \n");     scanf("%d%d", &cx, &cy);     printf("Enter the radius : ");     scanf("%d", &r);     y = r;     p = 1 - r;     initgraph(&gd, &gm, "");     cleardevice();     while (x < y) {     plotpoints(x, y, cx, cy);     x++;     if (p < 0)         p += 2 * x + 1;     else {         y--;         p += 2 * (x - y) + 1;     }     }     getch(); } /*=============================19Nov.,2010=============================*/ Posted by Mangi Lal Sharma at 6/23/2013 12:08:00 am No comments: Links to this post Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Graphics Lab Bresenham's line drawing algorithm /* compiler- Turbo c++ author- Mangilal Sharma =================================*/  #include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> void swap(int &x, int &y) {     int k = x;     x = y;     y = k; } void main() {     int gd = DETECT, gm = DETECT, x1, x2, y1, y2, dx, dy, p, k;     bladder m = 0;     clrscr();     printf("Enter the sarting point x1 & y1\n");     scanf("%d%d", &x1, &y1);     printf("Enter the end point x2 & y2\n");     scanf("%d%d", &x2, &y2);     dx = abs(x2 - x1);     dy = abs(y2 - y1);     m = (float) (y2 - y1) / (x2 - x1);     initgraph(&gd, &gm, "");     cleardevice();     if (fabs(m) > 1) {     swap(x1, y1);     swap(x2, y2);     swap(dx, dy);     }     if ((x1 > x2)) {     x1 = x2;     y1 = y2;     }     p = 2 * dy - dx;     for (k = 0; k < abs(dx); k++) {     if (p < 0) {         p = p + 2 * dy;     } else {         if (m < 0)         y1--;         else         y1++;         p = p + (2 * dy) - (2 * dx);     }     if (fabs(m) <= 1)         putpixel(x1++, y1, 15);     else         putpixel(y1, x1++, 15);     }     getch(); } /*=============================19Nov.,2010=============================*/ Posted by Mangi Lal Sharma at 6/23/2013 12:02:00 am No comments: Links to this post Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Graphics Lab Saturday, 22 June 2013 DDA (Digital differential analyzer) Line Drawing Algorithm /* compiler- Turbo c++ author- Mangilal Sharma ================================= DDA (Digital differential analyzer) Line Drawing Algorithm========================*/  #include <graphics.h> #include <stdio.h> #include <conio.h> #include <math.h> void main() {     int gd = DETECT, gm = DETECT, s, dx, dy, m, x1, y1, x2, y2;     bladder xi, yi, x, y;     clrscr();     printf("Enter the sarting point x1 & y1\n");     scanf("%d%d", &x1, &y1);     printf("Enter the end point x2 & y2\n");     scanf("%d%d", &x2, &y2);     initgraph(&gd, &gm, "");     cleardevice();     dx = x2 - x1;     dy = y2 - y1;     if (abs(dx) > abs(dy))     s = abs(dx);     else     s = abs(dy);     xi = dx / (float) s;     yi = dy / (float) s;     x = x1;     y = y1;     putpixel(x1, y1, 4);     for (m = 0; m < s; m++) {     x += xi;     y += yi;     putpixel(x, y, 4);     }     getch(); } /*=============================19Nov.,2010=============================*/ Posted by Mangi Lal Sharma at 6/22/2013 10:19:00 pm No comments: Links to this post Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Graphics Lab Thursday, 29 November 2012 introduction of C graphics /*Program to impelement vital introduction of C graphics compiler- Turbo c++     author- Mangilal Sharma --------------------------------------------------------*/ #include<graphics.h> #include<conio.h> void main() {  int gd = DETECT, gm;  initgraph(&gd, &gm, "c:\tc\bgi ");  circle(200, 100, 150);  getch();  closegraph(); } /*=========================4Aug.,2012=============================*/ Posted by Mangi Lal Sharma at 11/29/2012 08:57:00 am No comments: Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Graphics Lab Older Posts Home Subscribe to: Posts (Atom) Labels DSA Lab (20) C vital lab (16) OS Lab (12) DAA Lab (7) Graphics Lab (5) C++ vital lab (4) Attention (3) Compiler Lab (3) FORUM (1) Problems (1) Welcome (1) Feedjit Feedjit Live Blog Stats About Me Mangi Lal Sharma View my well-constructed profile My other blogs mangilalsaraswat.blogspot.com Total Pageviews Get My Help To Write Your Program mangilalsharma Fiverr Seller Main Skills: WordPress, C, C++, Java, PHP. I have wits in WordPress 5 years, C 8 years, C++ 7 years, Java 5 years and PHP 5 years. My services contains everything related to websites and desktop software. Blog Archive ▼  2015 (3) ▼  September (3) Factset Question: Subarray of k Size from a Array ... C program for User specified Custom atoi Function Co... C Program to Demonstrate use of atoi Function ►  2014 (3) ►  November (3) ►  2013 (9) ►  July (1) ►  June (6) ►  April (1) ►  March (1) ►  2012 (50) ►  December (3) ►  November (47) Flagcounter Copyright by world-of-c-programming.blogspot.com. Simple theme. Powered by Blogger.