mirror of
https://github.com/ulbwazhine/MockupEngineer.git
synced 2024-11-25 10:13:44 +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))
|
||||
|
|
31
README.md
31
README.md
|
@ -2,3 +2,34 @@
|
|||
<h1>MockupEngineer</h1>
|
||||
<p>An simple library for creating beautiful screenshots.</p>
|
||||
</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