Browse Source

Updating docs/sample themes

Noah 7 years ago
parent
commit
507d6e273a
3 changed files with 12 additions and 2 deletions
  1. 1 1
      THEMES.md
  2. 1 1
      renderer/patterns.js
  3. 10 0
      settings/themes.json

+ 1 - 1
THEMES.md View File

@@ -60,7 +60,7 @@ You can set both a `backgroundColor` and a `backgroundImage`, in which case the
60 60
 
61 61
 ### Wave options
62 62
 
63
-* `pattern` - What waveform shape to draw. Current options are `wave`, `bars`, `roundBars`, `pixel`, `bricks`, and `equalizer` (default: `wave`)
63
+* `pattern` - What waveform shape to draw. Current options are `wave`, `bars`, `line`, `curve`, `roundBars`, `pixel`, `bricks`, and `equalizer` (default: `wave`)
64 64
 * `waveTop` - How many pixels from the top edge to start the waveform (default: `0`)
65 65
 * `waveBottom` - How many pixels from the top edge to end the waveform (default: same as `height`)
66 66
 * `waveLeft` - How many pixels from the left edge to start the waveform (default: `0`)

+ 1 - 1
renderer/patterns.js View File

@@ -158,7 +158,7 @@ function strokedPath(interpolator) {
158 158
 
159 159
     context.fillStyle = options.waveColor;
160 160
     context.strokeStyle = options.waveColor;
161
-    context.lineWidth = 3;
161
+    context.lineWidth = 5;
162 162
 
163 163
     var line = d3.line()
164 164
       .context(context);

+ 10 - 0
settings/themes.json View File

@@ -51,6 +51,16 @@
51 51
     "captionBottom": 660,
52 52
     "captionTop": null
53 53
   },
54
+  "Line": {
55
+    "backgroundColor": "#edc951",
56
+    "foregroundColor": "#00a0b0",
57
+    "pattern": "line"
58
+  },
59
+  "Curve": {
60
+    "backgroundColor": "#00a0b0",
61
+    "foregroundColor": "#edc951",
62
+    "pattern": "curve"
63
+  },
54 64
   "Bricks": {
55 65
     "backgroundColor": "#8771aa",
56 66
     "foregroundColor": "#fff",