-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
temp.tape |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
rec_assets = $(wildcard rec.*.tape) $(wildcard **/rec.*.tape) | ||
screenshot_assets = $(wildcard screenshot.*.tape) $(wildcard **/screenshot.*.tape) | ||
recs = $(rec_assets:rec.%.tape=asset.%.gif) | ||
screenshots = $(screenshot_assets:screenshot.%.tape=asset.%.png) | ||
|
||
prefix_file = static.prefix.tape | ||
suffix_file = static.suffix.tape | ||
temp_tape = temp.tape | ||
temp_out = out.gif | ||
|
||
all: $(recs) $(screenshots) | ||
|
||
asset.%.gif: rec.%.tape | ||
@echo "Output $@" > ${temp_tape} | ||
@cat ${prefix_file} >> ${temp_tape} | ||
@cat $< >> ${temp_tape} | ||
@cat ${suffix_file} >> ${temp_tape} | ||
@echo vhs $< | ||
@vhs ${temp_tape} -o $@ | ||
|
||
asset.%.png: screenshot.%.tape | ||
@echo "Output ${temp_out}" > ${temp_tape} | ||
@cat ${prefix_file} >> ${temp_tape} | ||
@cat $< >> ${temp_tape} | ||
@echo "Show" >> ${temp_tape} | ||
@echo "Screenshot $@" >> ${temp_tape} | ||
@echo "Sleep 100ms" >> ${temp_tape} | ||
@echo vhs $< | ||
@vhs ${temp_tape} -o ${temp_out} | ||
|
||
clean: | ||
-rm $(recs) $(screenshots) | ||
-rm ${temp_tape} ${temp_out} | ||
|
||
.PHONY: all clean |
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,5 @@ | ||
Set Height 320 | ||
|
||
Type "sk show neovim" | ||
Sleep 100ms | ||
Enter |
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,15 @@ | ||
Set Framerate 24 | ||
Set Width 1280 | ||
Set Height 920 | ||
Set Padding 16 | ||
Set Margin 0 | ||
|
||
Set LineHeight 1.1 | ||
Set FontFamily "JetBrainsMono Nerd Font" | ||
Set FontSize 26 | ||
|
||
Set TypingSpeed 0.1 | ||
|
||
Set Theme GruvboxDark | ||
|
||
Require sk |
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 @@ | ||
Sleep 2.5s |