Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-04-2009, 04:04 PM   #1 (permalink)
Freak Beta 1
 
Dark Core's Avatar
 
Join Date: Dec 2008
Location: Nagercoil
Posts: 208
Red face Draw Doordashan Logo in C++


Hello guyz, I need a C++ Program to draw DD Channel Logo.. This was an assignment given to us in our college.. Pls help me out guyz..
__________________
Twitter : www.twitter.com/arunselvakumar :twisted:
Facebook : www.facebook.com/arunselvakumar :evil:
Dark Core is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-04-2009, 01:32 PM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Draw Doordashan Logo in C++

play around with the arc function, and the centre is an ellipse. you need 3 + 3 arcs and ellipse for the whole thing.
1 arc = from sharp end
1 arc = from sharp end, different end point
1 arc = connecting 2 endpoints of first 2 arcs

repeat 3 arcs for the symmetrical side too.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 12-04-2009, 03:33 PM   #3 (permalink)
Freak Beta 1
 
Dark Core's Avatar
 
Join Date: Dec 2008
Location: Nagercoil
Posts: 208
Default Re: Draw Doordashan Logo in C++

^^
Well tat's was the clue already given by our Mam, but the problem is with using arc function.. I don't know how to use that function to get the correct shape,
-----------------------------------------
Posted again:
-----------------------------------------
^^
Well tat's was the clue already given by our Mam, but the problem is with using arc function.. I don't know how to use that function to get the correct shape,
__________________
Twitter : www.twitter.com/arunselvakumar :twisted:
Facebook : www.facebook.com/arunselvakumar :evil:

Last edited by Dark Core; 12-04-2009 at 03:39 PM. Reason: Automerged Doublepost
Dark Core is offline  
Old 12-04-2009, 03:52 PM   #4 (permalink)
Wise Old Owl
 
dOm1naTOr's Avatar
 
Join Date: Mar 2005
Location: shhhh!!!!! on a sniper point
Posts: 4,200
Default Re: Draw Doordashan Logo in C++

hi just write an function with any name eg:
void doordarshan()
{
while (!kbhit())
{
arc(100,200,250, 120,300);
circle(300,200,400); //circle(x1,y1,r);
}

if u need a rotating symbol, just put some delay after those steps and then a cleardevive and call another function after than from itself as recurssion. The second function shud have slightly rotated co-ordinates and so on. This is the simplest way.
if u need further help, just type arc or circle in c++ screen and right click for help on what those numbers do.
__________________
G1: PII X4 B50 4.0 | TRUE 120*2 | TA790GXB A2+ | 4GB DDR2 GSkill 1200 | Audigy 2 | HD4870 | HEC 550 | MX 518.
G2: AII 240 | M2N 68AM+ | 3GB| 8800GT | Zebby Plat 500
G3: XPS M1530 |
FZ 16.
dOm1naTOr is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya

Advertisement




All times are GMT +5.5. The time now is 03:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2