-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
individual eye flares, scaling, other stuff
- Loading branch information
Showing
10 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Our overlay images (laser eye effects, emojis, etc) are all pngs with transparent | ||
// backgrounds. For the laser eye effects, we want the image controls (the box | ||
// that lets you resize and rotate the image) to be smaller than the images themselves, | ||
// since the images often contain small lens flare effects which go hella wide. | ||
// This function gives the padding values to use for the FabricJS image controls. | ||
// They are selected entirely on vibes. | ||
export default function get_overlay_padding(image_name: string): number { | ||
switch (image_name) { | ||
case 'blue-flare.png': | ||
return -130; | ||
case 'white-flare.png': | ||
return -70; | ||
default: | ||
return 0; | ||
} | ||
} |