mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07: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:
parent
ff754b8bb1
commit
256e3819df
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue