Skip to content

Commit

Permalink
refactor(examples): update gradient def in svg-waveform
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 14, 2018
1 parent c20b24a commit f45f4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/svg-waveform/src/components/waveform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function waveform(ctx: AppContext, opts: WaveformOpts) {
{ ...ctx.ui.waveform, viewBox: `0 -5 ${opts.res} 10` },
defs(
linearGradient(
"grad", 0, 0, 0, 1,
[[0, opts.fill2], [0.5, opts.fill1], [1, opts.fill2]]
"grad", [0, 0], [0, 1],
[[0, opts.fill2], [0.5, opts.fill1], [1, opts.fill2]],
)
),
polyline(
Expand Down

0 comments on commit f45f4ff

Please sign in to comment.