Colorsby (no login)
Have you notice one can tweak the colors ? like here :
CALL TRI(X - B / 2, BY, B / 2, H / 2, 1, n - 1)
CALL TRI(X + B / 2, BY, B / 2, H / 2, 2, n - 1)
CALL TRI(X, BY - H / 2, B / 2, H / 2, 3, n - 1)
Replace C with any color code.
It is then really nice. But i'm much more amazed by beauty of the code : Only 3 lines to draw a fractal, easy readable code, working like a charm !
The number of triangles grows by a factor 3 with n :)
The total number.. ok.
I'm just wondering if i can do the arithmetic challenge i posted few days ago, with recursivity...
|Response Title||Author and Date|
|*The colors thing is great, and yes, I should have commented on the code -- very elegant!||on Sep 28|
|*Thanks, but not running in XP ?||Lisztfr on Sep 29|
|I have Windows 7...||on Sep 29|
|Vesa stuff .. ?||Lisztfr on Sep 30|
|I didn't make the patch. Found it at Phatcode.net.||on Sep 30|
|Micro$oft's goal is to eventually create operating systems that any idiot can run...||on Sep 30|
|*I would love to see how many they would sell, if they didn't come bundled with new comps!||on Oct 1|