-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added radius option & tidied up args with minimist
This adds a `--radius=<n>` option to control the animation radius from the CLI. Also updates the README accordingly, puts the greyscaling into its own function, and adds some TODOs for things I was thinking of doing next.
- Loading branch information
1 parent
97e9bbf
commit 5239e62
Showing
3 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# party-party-party | ||
Turn a source image into an animated party emoji | ||
Turn a source image into an animated party emoji! | ||
|
||
This smiling emoji is pretty cool: | ||
|
||
![Smiling Emoji](https://raw.githubusercontent.com/scotchfield/party-party-party/master/smile.png "Smiling Emoji") | ||
![Smiling Emoji](./smile.png "Smiling Emoji") | ||
|
||
However, it might be jealous of all those parrots and their parties. Let's help out our emoji friend. | ||
|
||
![Party Smiling Emoji](https://raw.githubusercontent.com/scotchfield/party-party-party/master/party-smile.gif "Party Smiling Emoji") | ||
![Party Smiling Emoji](./party-smile.gif "Party Smiling Emoji") | ||
|
||
If you'd like to create emojis for Slack, make sure your input image is 128x128 (or less). If you want to tune the radius of the animating circle, you can change the following line: (larger values indicate more distance from the origin, i.e. a wider circle) | ||
## Usage | ||
`node index.js smile.png party.gif` | ||
|
||
`const partyRadius = 10;` | ||
Note: If you'd like to create emojis for Slack, make sure your input image is 128x128 (or less). | ||
|
||
![Party Heart Emoji](https://raw.githubusercontent.com/scotchfield/party-party-party/master/heart.gif "Party Heart Emoji") | ||
### Radius | ||
If you want to tune the radius of the animating circle, you can use the `--radius=<n>` option. The default for this is `10`. | ||
|
||
## Usage | ||
`node index.js smile.png party.gif` | ||
For example, `node index.js --radius=0 smile.png party.gif` will create a party version of `smile.png` where the image has an ounce or two less party. | ||
|
||
![Still Party Smile Emoji](./still-party-smile.gif "Still Party Smile Emoji") | ||
|
||
![Party Heart Emoji](./heart.gif "Party Heart Emoji") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.