Anonymous user
Brownian tree/C++ animated: Difference between revisions
→{{header|C++}}
(Created page with "=={{header|C++}}== 300px <lang cpp> #include <windows.h> #include <windowsx.h> #include <string> //-----------------------------------------...") |
|||
Line 1:
=={{header|C++}}==
[[File:brownianTreeAnim_cpp.png|300px]]
The green dots you can see in this picture are what I call movers. They are particles that still do not belong to the tree.
<lang cpp>
#include <windows.h>
Line 12 ⟶ 14:
enum states { SEED, GROWING, MOVING, REST };
enum treeStates { NONE, MOVER, TREE };
const int MAX_SIDE =
//--------------------------------------------------------------------------------------------------
|