https://github.com/jaid/render-dead-by-daylight-build
Creates an image of a Dead by Daylight build.
https://github.com/jaid/render-dead-by-daylight-build
dbd dead-by-daylight image image-generation lib library render util utility
Last synced: 8 months ago
JSON representation
Creates an image of a Dead by Daylight build.
- Host: GitHub
- URL: https://github.com/jaid/render-dead-by-daylight-build
- Owner: Jaid
- License: mit
- Created: 2020-03-25T06:19:23.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T18:16:47.000Z (over 3 years ago)
- Last Synced: 2025-02-13T11:52:30.239Z (over 1 year ago)
- Topics: dbd, dead-by-daylight, image, image-generation, lib, library, render, util, utility
- Language: JavaScript
- Homepage: https://github.com/Jaid/render-dead-by-daylight-build
- Size: 2.3 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license.txt
Awesome Lists containing this project
README
# render-dead-by-daylight-build
**Creates an image of a Dead by Daylight build.**
## Installation
```bash
npm install --save render-dead-by-daylight-build@^1.1.1
```
```bash
yarn add render-dead-by-daylight-build@^1.1.1
```
(if [configured properly](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages))
```bash
npm install --save @jaid/render-dead-by-daylight-build@^1.1.1
```
## Example

This image is rendered by this code:
```javascript
import renderDeadByDaylightBuild from "render-dead-by-daylight-build"
import Jimp from "jimp"
const perkIds = ["wellMakeIt", "noMither", "selfCare", "headOn"]
const screenshotBuffer = await renderDeadByDaylightBuild(perkIds)
const jimp = await Jimp.read(screenshotBuffer)
await jimp.writeAsync("./build.png")
```
## Development
Setting up:
```bash
git clone git@github.com:jaid/render-dead-by-daylight-build.git
cd render-dead-by-daylight-build
npm install
```
Testing:
```bash
npm run test:dev
```
Testing in production environment:
```bash
npm run test
```
## License
[MIT License](https://raw.githubusercontent.com/jaid/render-dead-by-daylight-build/master/license.txt)
Copyright © 2020, Jaid \ (https://github.com/jaid)