mirror of
https://github.com/ulbwazhine/MockupEngineer.git
synced 2024-11-22 00:46:33 +03:00
2022.22.01.3
This commit is contained in:
parent
da324ab229
commit
f31ce4470f
|
@ -6,8 +6,6 @@ from MockupModule import MockupEngineer
|
|||
def main():
|
||||
mockup = MockupEngineer()
|
||||
|
||||
mockup.__create_examples__('/Users/ulbwa/Documents/MockupEngineer/MockupModule/templates/example.jpg')
|
||||
|
||||
i = 0
|
||||
for template in mockup.templates:
|
||||
print('[{}] {} {} [{}] ({})'.format(i, template.manufacturer, template.name, template.resolution, template.year))
|
||||
|
|
33
README.md
33
README.md
|
@ -1,4 +1,35 @@
|
|||
<div align="center">
|
||||
<h1>MockupEngineer</h1>
|
||||
<p>An simple library for creating beautiful screenshots.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
## Example
|
||||
|
||||
<img align="center" src="https://raw.githubusercontent.com/ulbwazhine/MockupEngineer/main/MockupModule/templates/iphone12promax/example.png" alt="Apple iPhone 12 Pro Max">
|
||||
|
||||
## Usage
|
||||
|
||||
In Python console:
|
||||
```python
|
||||
from MockupModule import MockupEngineer
|
||||
|
||||
mockup = MockupEngineer()
|
||||
|
||||
mockup.generate(template=mockup.templates[0],
|
||||
screenshot_path='/path/to/screenshot',
|
||||
color=mockup.templates[0].colors[0].color)
|
||||
```
|
||||
|
||||
```
|
||||
>>> /path/to/mockup
|
||||
```
|
||||
|
||||
As a standalone application:
|
||||
```
|
||||
$ python -m MockupModule
|
||||
```
|
||||
|
||||
## Links
|
||||
* [Author](https://t.me/ulbwa)
|
||||
* [GitHub](https://github.com/ulbwazhine/MockupEngineer)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user