Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: tracing/tracing/base/sinebow_color_generator.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/base/running_statistics_test.html ('k') | tracing/tracing/base/sorted_array_utils.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/sinebow_color_generator.html
diff --git a/tracing/tracing/base/sinebow_color_generator.html b/tracing/tracing/base/sinebow_color_generator.html
index c6aba3c02014b743030a597bf44bac1318805a37..436a40641bf8e1508b6d032bdd3d95afad41c761 100644
--- a/tracing/tracing/base/sinebow_color_generator.html
+++ b/tracing/tracing/base/sinebow_color_generator.html
@@ -7,7 +7,7 @@ found in the LICENSE file.
<link rel="import" href="/tracing/base/color.html">
<link rel="import" href="/tracing/base/iteration_helpers.html">
-<link rel="import" href="/tracing/base/math.html">
+<link rel="import" href="/tracing/base/math/math.html">
<script>
'use strict';
@@ -75,9 +75,9 @@ tr.exportTo('tr.b', function() {
g *= brightness;
b *= brightness;
} else {
- r = tr.b.lerp(tr.b.normalize(brightness, 1, 2), r, 255);
- g = tr.b.lerp(tr.b.normalize(brightness, 1, 2), g, 255);
- b = tr.b.lerp(tr.b.normalize(brightness, 1, 2), b, 255);
+ r = tr.b.math.lerp(tr.b.math.normalize(brightness, 1, 2), r, 255);
+ g = tr.b.math.lerp(tr.b.math.normalize(brightness, 1, 2), g, 255);
+ b = tr.b.math.lerp(tr.b.math.normalize(brightness, 1, 2), b, 255);
}
r = Math.round(r);
g = Math.round(g);
« no previous file with comments | « tracing/tracing/base/running_statistics_test.html ('k') | tracing/tracing/base/sorted_array_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698