Solved

Firework graphic source code

Posted on 1997-11-13
3
594 Views
Last Modified: 2012-06-27
I'm looking for source code for an animation of an exploding firework that can be used through the Borland compiler on a PC. I would be realy greatfull if anybody could help.
0
Comment
Question by:johnB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:ksato
ID: 1256321
If the DOS graphics library will do, you can try keeping track of n firework "pixels" and for each of those, keep track of each velocity (direction and how many pixels to skip when redrawing). Each render/redraw you do you can offset each firwork pixel so they won't all be going in the same direction. And decide how the firework pixels behave (bounce off screen dimensions, etc.). If you're just looking into experimenting, I can help you out with a "bouncing ball program" and you can go from there.  Cheers
0
 
LVL 2

Accepted Solution

by:
rigansen earned 100 total points
ID: 1256322
Some say "You know C++, then you know JAVA", I hope you know some C++ programming as well as C...  ;)

because there is a site with a fireworks applet at http://www.ivee.com/~wistrand/fireworks/, there you will be able to find the source code so you can check it out and get the idea.

The author says "You may freely use the applet for non-commercial purposes as much as you like", so I hope I'm not violating any copyright policy. If I am, let me know.

Hope this helps you out!!
0
 

Author Comment

by:johnB
ID: 1256323
I really could have done with somthing a bit more specificly C orientated, and I'd actually allready found the applet myself and It wasn't much use, but thanks anyway.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question