diff --git a/AALIB-GUIDE.md b/AALIB-GUIDE.md new file mode 100644 index 00000000..62a07f77 --- /dev/null +++ b/AALIB-GUIDE.md @@ -0,0 +1,51 @@ +First, we breakdown the video into frames. +``` bash +ffmpeg -i asd.mp4 -vf "crop=900:860" frame%04d.png +``` + +Then we console log the arrays after all of the calculations have been done. + +Note that you need to set the frame count in the for loop. +``` html + +``` +Afterwards, paste the Pre-Rendered AA animations as an array in your code. \ No newline at end of file diff --git a/config/commands.js b/config/commands.js index d918ce27..3fc8cdf1 100644 --- a/config/commands.js +++ b/config/commands.js @@ -2,6 +2,22 @@ const whoisRoot = "Root Ventures is a San Francisco-based deep tech seed fund ma const timeUnit = 1000; // useful for development, set to 10 to run faster, set to 1000 for production let killed = false; +function SpawnRickRollPointers() { + function padNumber(num, length) { + let str = num.toString(); + while (str.length < length) { + str = '0' + str; + } + return str; + } + + const colSize = term.cols >= 90 ? 39 : 24 + + for(let i = 0; i <= colSize; i++) { + term.stylePrint(`${colorText(`vsabnBRXofjub${padNumber(i,2)}`, "command")}`, false); + } +} + const commands = { help: function() { const maxCmdLength = Math.max(...Object.keys(help).map(x => x.length)); @@ -92,7 +108,7 @@ const commands = { }, test: function() { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + SpawnRickRollPointers() }, email: function() { @@ -242,7 +258,7 @@ const commands = { term.stylePrint(`No such file: ${filename}`); } if (filename == "id_rsa") { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + SpawnRickRollPointers() } }, diff --git a/index.html b/index.html index 54c0f509..f32feaa0 100644 --- a/index.html +++ b/index.html @@ -46,8 +46,9 @@ - - + + + @@ -81,6 +82,21 @@