aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/kugel
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@ost.ch>2022-05-24 11:53:56 +0200
committerAndreas Müller <andreas.mueller@ost.ch>2022-05-24 11:53:56 +0200
commitd08813723e1cab4bca4a527218610023775a4634 (patch)
treedda8255a04bb5b72a4b551348947b687905110a5 /buch/papers/kugel
parentadd C++ program to compute the surface (diff)
downloadSeminarSpezielleFunktionen-d08813723e1cab4bca4a527218610023775a4634.tar.gz
SeminarSpezielleFunktionen-d08813723e1cab4bca4a527218610023775a4634.zip
better color coding
Diffstat (limited to '')
-rw-r--r--buch/papers/kugel/images/spherecurve.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/buch/papers/kugel/images/spherecurve.cpp b/buch/papers/kugel/images/spherecurve.cpp
index eff8c33..8ddf5e5 100644
--- a/buch/papers/kugel/images/spherecurve.cpp
+++ b/buch/papers/kugel/images/spherecurve.cpp
@@ -102,7 +102,7 @@ public:
}
u = pow(u,2);
(*this)[0] = u;
- (*this)[1] = green;
+ (*this)[1] = green * u * (1 - u);
(*this)[2] = 1-u;
double l = l0norm();
for (int i = 0; i < 3; i++) {
@@ -284,7 +284,7 @@ public:
*/
int main(int argc, char *argv[]) {
surface S("spherecurve.inc", 5, 10);
- color::green = 0.3;
+ color::green = 1.0;
S.draw();
std::cout << "umin: " << S.umin() << std::endl;
std::cout << "umax: " << S.umax() << std::endl;