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:
@@ -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
|
||||
{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
|
||||
{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
|
||||
{height:100%}
|
||||
}}\n\n`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user