0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 21:12:49 +00:00

Add 8 corner images.

Doesn't work well with --rotation but you can just set top,left or whatever. --offset works.
This commit is contained in:
Trevor Buckner
2022-09-27 23:55:24 -04:00
parent b8d7d1a8e4
commit 89c091c630
21 changed files with 65 additions and 11 deletions

View File

@@ -1,7 +1,27 @@
const _ = require('lodash');
const dedent = require('dedent-tabs').default;
module.exports = {
edge : ()=>{
return dedent`
{{imageMask${_.random(1, 8)},--offset:0cm,--rotation:0
![](https://assets1.ignimgs.com/2019/05/29/dndmobile-br-1559158957902_160w.jpg?width=1280){height:100%}
<!-- Use offset to shift the edge up or down. Use rotation to set rotation angle in degrees. -->
}}\n\n`;
},
corner : ()=>{
return dedent`
{{imageMask_Corner${_.random(1, 8)},--offset:0cm,bottom,left
![](https://assets1.ignimgs.com/2019/05/29/dndmobile-br-1559158957902_160w.jpg?width=1280){height:100%}
<!-- Use offset to shift the edge up or down. Use top, bottom, left, and right to select a corner -->
}}\n\n`;
}
};
()=>{
module.exports = ()=>{
return `{{imageMask${_.random(1, 6)},--offset:0cm,--rotation:0
![](https://assets1.ignimgs.com/2019/05/29/dndmobile-br-1559158957902_160w.jpg?width=1280){height:100%}
}}\n\n`;
};