Skip to content

Commit

Permalink
Improve animated preview a bit.
Browse files Browse the repository at this point in the history
It defaults to Twemoji, it doesn't tint the emoji (it spins it instead), it dithers very slightly, etc. This also optimized logo_animated.gif with gifsicle, which cuts over 1/3 of the size off!
  • Loading branch information
tommyettinger committed Feb 4, 2025
1 parent acd36ec commit 9398933
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ org.gradle.daemon=false
org.gradle.configureondemand=false

gdxVersion=1.13.1
regexodusVersion=0.1.16
regexodusVersion=0.1.17
anim8Version=0.5.0

SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=false

GROUP=com.github.tommyettinger
POM_ARTIFACT_ID=textratypist
VERSION_NAME=1.1.1-SNAPSHOT
VERSION_NAME=2.0.0-SNAPSHOT

POM_NAME=textratypist
POM_DESCRIPTION=A libGDX text-display library centered around a label that prints over time, with effects and styles.
Expand Down
Binary file modified images/logo_animated.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preview-noto.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/preview-twemoji.gif
Binary file not shown.
Binary file modified images/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public TypingLabel createTypingLabel() {
final StringBuilder text = new StringBuilder();
text.append("{SLOWER}{GRADIENT=FF70F1;light exciting pink orange with ignored words;-0.5;5}{EASE=-8;2;1}{SHRINK=2;5}[@Medieval]Welcome,{ENDSHRINK}[%] [@]{WAIT}");
text.append("{SPIRAL=2;0.5;-2.5}{STYLE=/}{STYLE=;}[%^SHADOW]{VAR=title}[%]{STYLE=;}{STYLE=/}{ENDSPIRAL}![ ] ");
text.append("{TRIGGER=lightest violet}[lightest violet][+🤔][ ]{WAIT=0.8}");
text.append("{TRIGGER=lightest violet}{SPIN=0.5;-1}[+🤔]{ENDSPIN}[ ]{WAIT=0.8}");
text.append("{NORMAL}\n\n");
text.append("{RESET}[@Sans]{MEET}This is{ENDMEET} a [*][MAROON][%?SHINY]simple[WHITE][*] [%?blacken]test[%][@]{ENDATTENTION} to {SPIN}show you{ENDSPIN}");
text.append("{GRADIENT=27C1F5;2776E7;-0.5;5} {CROWD=20;1;forever}how to make dialogues{ENDCROWD} {JUMP}{SLOW}[*][/]fun[/][*] again! ");
Expand Down Expand Up @@ -139,9 +139,10 @@ public void end() {
QualityPalette pal = new QualityPalette();
pal.analyze(pms);
gif.setPalette(pal);
gif.setDitherAlgorithm(Dithered.DitherAlgorithm.NONE);
gif.setDitherStrength(0.5f);
gif.write(Gdx.files.local("preview.gif"), pms, FRAMERATE);
gif.setDitherAlgorithm(Dithered.DitherAlgorithm.LOAF);
gif.setDitherStrength(0.2f);
gif.write(Gdx.files.local("preview-noto.gif"), pms, FRAMERATE);
// gif.write(Gdx.files.local("preview.gif"), pms, FRAMERATE);
Gdx.app.exit();
}
});
Expand Down

0 comments on commit 9398933

Please sign in to comment.