mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 06:35:37 +00:00
fix(spritesmith): add padding between sprites to avoid stray-pixels
issue, fixes https://github.com/HabitRPG/habitrpg/issues/2938
This commit is contained in:
parent
1223294267
commit
4010bb950c
5 changed files with 3973 additions and 3971 deletions
|
|
@ -21,6 +21,7 @@ module.exports = function(grunt) {
|
|||
destImg: 'dist/spritesmith.png',
|
||||
destCSS: 'dist/customizer.css',
|
||||
algorithm: 'binary-tree',
|
||||
padding:1,
|
||||
cssTemplate: 'css/css.template.mustache',
|
||||
cssVarMap: function (sprite) {
|
||||
// `sprite` has `name`, `image` (full path), `x`, `y`
|
||||
|
|
@ -47,6 +48,7 @@ module.exports = function(grunt) {
|
|||
destImg: 'dist/spritesmith.png',
|
||||
destCSS: 'dist/spritesmith.css',
|
||||
algorithm: 'binary-tree',
|
||||
padding:1,
|
||||
cssTemplate: 'css/css.template.mustache'
|
||||
/*,cssOpts: {
|
||||
cssClass: function (item) {
|
||||
|
|
|
|||
3970
dist/customizer.css
vendored
3970
dist/customizer.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/habitrpg-shared.css
vendored
2
dist/habitrpg-shared.css
vendored
File diff suppressed because one or more lines are too long
3970
dist/spritesmith.css
vendored
3970
dist/spritesmith.css
vendored
File diff suppressed because it is too large
Load diff
BIN
dist/spritesmith.png
vendored
BIN
dist/spritesmith.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 506 KiB After Width: | Height: | Size: 511 KiB |
Loading…
Reference in a new issue