answersLogoWhite

0


Best Answer

Drawing natural looking trees in any programming language is difficult. The problem is trees (and many other living things) grow in a fractal manner, so look up "fractal mathematics" for ideas. If you don't want to do this research, then you can draw one on paper as you think it should look and hand code the program to exactly duplicate your paper drawing (but when I tried this in the early 1980s it came out looking worse than "a Charlie Brown Christmas Tree").

As to presents and decorations, they are quite trivial as they are almost always regular geometric shapes.

Just remember to have at least some of the lights flashing on and off and have Santa Claus in his Sleigh with all his Reindeer do a flyby in the background! These are all simple animations and much easier than coding a natural looking tree.

In my case back in the early 1980s I approximated a simple "step, scale, and repeat" type fractal to create the branches using some special graphics operations in the special purpose graphics programming language that I was using that qBasic does not have (although you could implement something like them with several subroutines that your main program would call). Although it still wasn't perfect it did produce a feel of a natural looking tree without requiring any really complicated code. I won the "Most Original Tree" prize at work that year and the next year was asked to rewrite it slightly (without animations) so it could be photographed for the Company Christmas Card!

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you draw a Christmas tree and presents in qBasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does your mom and dad put the presents under the Christmas tree?

Santa puts the presents under the christmas tree


What does a Christmas tree symbolise at Christmas?

the guiding star and presents from wisemen


Where are presants placed for Christmas?

Presents are places under a Christmas Tree.


In 'On the Banks of Plum Creek' is the Christmas tree decorated with candles or presents?

presents,,,


Where does father Christmas leave the presents in Portugal?

Christmas Tree or in shoes by the fireplace


What could you draw on homemade Christmas cards?

Santa Claus, a decorated tree, snow, baby Jeus, a manager, ribbons, a dove, presents, a sleigh, reindeer. The words; Merry Christmas and Happy New Year.


Why do you put up Christmas tree?

To put our presents under it!


What else do you do on Christmas?

well, you do a Christmas tree with ornaments, a HUGE dinner, receive presents, give presents, and most importantly thank God!


How do you draw a cartoon Christmas tree?

Someone could draw a cartoon Christmas tree by first drawing the depiction of a fir tree with the points that make it look like a tree. After the tree is drawn then the person would want to add on the Christmas decorations and lights to make it look festive.


Why do you need a Christmas tree?

You do not actually need a Christmas tree, but it does make the holiday more festive. Putting presents under it does, too.


What do people put in their Christmas tree?

lights, ornaments, presents, partridges.


Do you get presents even if you don't have a Christmas tree?

yes you can only if your good