Draw a sphere: Difference between revisions
Content deleted Content added
Updated D entry |
Updated D entry |
||
Line 633: | Line 633: | ||
} |
} |
||
void drawSphere(in double R, in double k, in double ambient) |
void drawSphere(in double R, in double k, in double ambient) @nogc { |
||
enum shades = ".:!*oe&#%@"; |
enum shades = ".:!*oe&#%@"; |
||
foreach (immutable i; cast(int)floor(-R) .. cast(int)ceil(R) + 1) { |
foreach (immutable i; cast(int)floor(-R) .. cast(int)ceil(R) + 1) { |