Mandelbrot set: Difference between revisions
m
→{{header|Dart}}: Minor updates to reflect current Dart usage.
m (Replace deprecated functions) |
m (→{{header|Dart}}: Minor updates to reflect current Dart usage.) |
||
Line 5,016:
=={{header|Dart}}==
Implementation in
The implementation uses
<syntaxhighlight lang="dart">
class Complex {
double _r, _i;
Complex(this._r, this._i);
}
void main() {
for (int y = 0; y < 20; y++) {
String line = "";
for (int x = 0; x < 70; x++) {
for (int i = 0; i < 100; i++) {
z = z *
if (z.abs() > 2) {
break;
}
}
line += z.abs() > 2 ? " " : "*";
}
print(line);
}
}
}</syntaxhighlight>▼
=={{header|Dc}}==
|