|
108 | 108 | "board-akron4": { |
109 | 109 | "name": "Boards: Akron4", |
110 | 110 | "description": "This board is for simulating sphere stacking in layers. The `pieces` property is still two dimensional. This render has three full layers of pieces.", |
111 | | - "render": "{\"board\":{\"style\":\"squares-stacked\",\"width\":7,\"height\":7,\"markers\":[{\"type\":\"edge\",\"edge\":\"N\",\"colour\":1},{\"type\":\"edge\",\"edge\":\"S\",\"colour\":1},{\"type\":\"edge\",\"edge\":\"E\",\"colour\":2},{\"type\":\"edge\",\"edge\":\"W\",\"colour\":2}]},\"legend\":{\"A\":{\"name\":\"orb0\",\"colour\":1,\"scale\":1.17},\"B\":{\"name\":\"orb0\",\"colour\":2,\"scale\":1.17},\"C\":{\"name\":\"orb0\",\"colour\":3,\"scale\":1.17},\"D\":{\"name\":\"orb0\",\"colour\":4,\"scale\":1.17},\"E\":{\"name\":\"orb0\",\"colour\":5,\"scale\":1.17},\"F\":{\"name\":\"orb0\",\"colour\":6,\"scale\":1.17},\"G\":{\"name\":\"orb0\",\"colour\":7,\"scale\":1.17},\"H\":{\"name\":\"orb0\",\"colour\":8,\"scale\":1.17},\"Y\":{\"name\":\"circle\",\"colour\":1,\"scale\":1.15,\"opacity\":0.5},\"Z\":{\"name\":\"circle\",\"colour\":2,\"scale\":1.15,\"opacity\":0.5}},\"pieces\":\"_\\n-ABBBAA\\n-ABBABA\\n-BAAAB-\\n-ABBAB-\\n-AA----\\nCDEFGHB\\n------\\n---BA-\\n----B-\\n------\\n------\\n------\",\"annotations\":[{\"type\":\"enter\",\"targets\":[{\"row\":6,\"col\":0}]}]}" |
| 111 | + "render": "{\"board\":{\"style\":\"squares-stacked\",\"width\":7,\"height\":7,\"markers\":[{\"type\":\"edge\",\"edge\":\"N\",\"colour\":1},{\"type\":\"edge\",\"edge\":\"S\",\"colour\":1},{\"type\":\"edge\",\"edge\":\"E\",\"colour\":2},{\"type\":\"edge\",\"edge\":\"W\",\"colour\":2}]},\"legend\":{\"A\":{\"name\":\"orb\",\"colour\":1,\"scale\":1.17},\"B\":{\"name\":\"orb\",\"colour\":2,\"scale\":1.17},\"C\":{\"name\":\"orb\",\"colour\":3,\"scale\":1.17},\"D\":{\"name\":\"orb\",\"colour\":4,\"scale\":1.17},\"E\":{\"name\":\"orb\",\"colour\":5,\"scale\":1.17},\"F\":{\"name\":\"orb\",\"colour\":6,\"scale\":1.17},\"G\":{\"name\":\"orb\",\"colour\":7,\"scale\":1.17},\"H\":{\"name\":\"orb\",\"colour\":8,\"scale\":1.17},\"Y\":{\"name\":\"circle\",\"colour\":1,\"scale\":1.15,\"opacity\":0.5},\"Z\":{\"name\":\"circle\",\"colour\":2,\"scale\":1.15,\"opacity\":0.5}},\"pieces\":\"_\\n-ABBBAA\\n-ABBABA\\n-BAAAB-\\n-ABBAB-\\n-AA----\\nCDEFGHB\\n------\\n---BA-\\n----B-\\n------\\n------\\n------\",\"annotations\":[{\"type\":\"enter\",\"targets\":[{\"row\":6,\"col\":0}]}]}" |
112 | 112 | }, |
113 | 113 | "board-squares-stacked": { |
114 | 114 | "name": "Boards: Square Stacked", |
|
449 | 449 | "name": "Niche: Isometric", |
450 | 450 | "description": "This is still experimental! Not all features will work as expected. The only glyphs currently supported are cubes and cylinders. Glyphs are generated on the fly, with a special legend structure. 90-degree rotation works correctly.", |
451 | 451 | "render": `{"renderer":"isometric","board":{"style":"squares","width":6,"height":6,"heightmap":[[100,75,50,50,75,100],[75,50,25,25,50,75],[50,25,0,0,25,50],[50,25,0,0,25,50],[75,50,25,25,50,75],[100,75,50,50,75,100]]},"legend":{"A":{"piece":"cylinder","height":20,"colour":1},"B":{"piece":"cylinder","height":20,"colour":2}},"pieces":"_\\n_\\n_\\n-,-,-,B,-,-\\n-,-,B,A,B,-\\n-,A,-,A,BA,B\\n-,-,-,-,ABA,-"}` |
| 452 | + }, |
| 453 | + "niche-functions": { |
| 454 | + "name": "Niche: Functions", |
| 455 | + "description": "Colours can also be specified by function. This example shows the 'flatten' function in the colour of the cells (which will automatically change between light and dark modes) and the 'lighten' function for the pieces.", |
| 456 | + "render": `{"options":["hide-labels"],"board":{"style":"hex-of-hex","minWidth":5,"maxWidth":10,"alternatingSymmetry":true,"strokeColour":"_context_background","backFill":{"type":"board","colour":{"func":"flatten","fg":"_context_fill","bg":"_context_background","opacity":0.25}},"markers":[{"type":"halo","offset":-27,"nudge":{"dx":0,"dy":7},"width":3,"segments":[{"colour":"_context_fill","opacity":0.9},{"colour":"_context_fill","opacity":0.5},{"colour":"_context_fill","opacity":0.1}]}]},"legend":{"P1":{"name":"piece","colour":1},"P1X":[{"name":"piece","colour":1},{"name":"meeple","colour":"#fff","scale":0.75,"opacity":0.25}],"P2":{"name":"piece","colour":2},"P2X":[{"name":"piece","colour":2},{"name":"meeple","colour":"#fff","scale":0.75,"opacity":0.25}],"G":{"name":"cube","colour":3,"scale":0.75},"Y":{"name":"cube","colour":{"func":"lighten","colour":3,"ds":3,"dl":1},"scale":0.75},"P":{"name":"cube","colour":{"func":"lighten","colour":3,"ds":6,"dl":2},"scale":0.75},"O":{"name":"cube","colour":{"func":"lighten","colour":3,"ds":-1.5,"dl":-0.5},"scale":0.75},"B":{"name":"cube","colour":{"func":"lighten","colour":3,"ds":-2.5,"dl":-1.5},"scale":0.75}},"pieces":"B,O,G,Y,P\\n-,-,-,-,-,-\\n-,-,-,-,-,-,-\\n-,-,-,-,-,-,-,-\\n-,-,-,-,-,-,-,-,-\\n-,-,-,-,-,-,-,-,-,-\\n-,-,-,-,-,-,-,-,-\\n-,-,-,-,-,-,-,-\\n-,-,-,-,-,-,-\\n-,-,-,-,-,-"}` |
452 | 457 | } |
453 | 458 | } |
454 | 459 |
|
|
0 commit comments