|
1 | | -val plotW = 800 |
| 1 | +// generate color data using templates/scala-diagram-input.template |
| 2 | +val bg = new Color("bg", "103c48", 23) |
| 3 | +val fg = new Color("fg", "adbcbc", 75) |
| 4 | +val bgColors = List(bg, fg) |
| 5 | +val fgColors = List( |
| 6 | + new Color("bg_0", "103c48", 23), |
| 7 | + new Color("bg_1", "174956", 28), |
| 8 | + new Color("bg_2", "325b66", 36), |
| 9 | + new Color("red", "fa5750", 60), |
| 10 | + new Color("orange", "ed8649", 67), |
| 11 | + new Color("yellow", "dbb32d", 75), |
| 12 | + new Color("green", "75b938", 69), |
| 13 | + new Color("cyan", "41c7b9", 73), |
| 14 | + new Color("blue", "4695f7", 60), |
| 15 | + new Color("violet", "af88eb", 64), |
| 16 | + new Color("magenta", "f275be", 66), |
| 17 | + new Color("dim_0", "72898f", 56), |
| 18 | + new Color("fg_0", "adbcbc", 75), |
| 19 | + new Color("fg_1", "cad8d9", 85) |
| 20 | +) |
| 21 | + |
| 22 | +val plotW = 1000 |
2 | 23 | val plotH = 600 |
3 | 24 | val squareSize = 48 |
4 | 25 | val squareHalf = squareSize/2.0 |
@@ -166,22 +187,5 @@ def drawSwatches(colors: List[Color]) = { |
166 | 187 |
|
167 | 188 | println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>") |
168 | 189 |
|
169 | | -val bg = new Color("bg", "103c48", 23) |
170 | | -val fg = new Color("fg", "adbcbc", 75) |
171 | | -val bgColors = List(bg, fg) |
172 | | -val fgColors = List( |
173 | | - new Color("bg_1", "184956", 28), |
174 | | - new Color("bg_2", "2d5b69", 36), |
175 | | - new Color("dim_0", "72898f", 56), |
176 | | - new Color("fg_0", "adbcbc", 75), |
177 | | - new Color("fg_1", "cad8d9", 85), |
178 | | - new Color("red", "fa5750", 60), |
179 | | - new Color("green", "75b938", 69), |
180 | | - new Color("yellow", "dbb32d", 75), |
181 | | - new Color("blue", "4695f7", 60), |
182 | | - new Color("magenta", "f275be", 66), |
183 | | - new Color("cyan", "41c7b9", 73) |
184 | | -) |
185 | | - |
186 | 190 | println(genSvg(bgColors, fgColors)) |
187 | 191 |
|
0 commit comments