mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 17:12:52 +00:00
Use other composition for multiple graphs
"lighten" would result in a disappearing graph when too many graphs overlapped, "exclusion" looks much better in this situation.
This commit is contained in:
@@ -121,7 +121,7 @@ function draw_frequency_graph()
|
||||
nb.textContent = type + " - n=" + time_by_frame.length;
|
||||
legend.appendChild(nb);
|
||||
|
||||
context.globalCompositeOperation = "lighter";
|
||||
context.globalCompositeOperation = "exclusion";
|
||||
context.beginPath();
|
||||
context.strokeStyle = colour;
|
||||
context.lineWidth = 1;
|
||||
@@ -226,7 +226,7 @@ function draw_history_graph()
|
||||
const time_by_frame = series_data[type];
|
||||
|
||||
context.beginPath();
|
||||
context.globalCompositeOperation = "lighten";
|
||||
context.globalCompositeOperation = "exclusion";
|
||||
context.strokeStyle = colour;
|
||||
context.lineWidth = 0.75;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user