summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2015-10-10 11:14:58 -0400
committerJules <jules@asdf.us>2015-10-10 11:14:58 -0400
commit860a352f3ddac99aeea6b51c47a9951ea20a8363 (patch)
tree75b732ad61674ac2b814099800aa99bb6af5ca7c
parent763efa0edf27ef1ed2e0a722ff1551d55f0e4f02 (diff)
four corners webcam effect
-rw-r--r--irssi.txt5
-rw-r--r--webcam.html8
2 files changed, 11 insertions, 2 deletions
diff --git a/irssi.txt b/irssi.txt
index 9a3011c..42ada16 100644
--- a/irssi.txt
+++ b/irssi.txt
@@ -88,9 +88,10 @@ If you do not want to do the autojoin thing these are the commands you'd normall
SETTING UP IRSSI TO AUTOJOIN #SALLY
===================================
-First run irssi, then paste in these commands (changing yournick to your preferred nickname, etc)
+First run irssi, then paste in these commands.
+Please change YOUR_NICK_HERE to your preferred username!
-/network add -nick yournick -user yournick -realname "your name" Jollo
+/network add -nick YOUR_NICK_HERE -user YOUR_NICK_HERE -realname "YOUR NAME HERE" Jollo
/server add -network Jollo -auto -ssl irc.jollo.org 9999
/channel add -auto #sally Jollo
/save
diff --git a/webcam.html b/webcam.html
index bbdeda2..fb010a9 100644
--- a/webcam.html
+++ b/webcam.html
@@ -149,6 +149,14 @@ var SHADERS = [
rgbpixel(d, p, x, y < h/2 ? y : h-y-1, w, h)
}
},
+ { name: "four-corners",
+ shader: function(d, p, x, y, w, h){
+ rgbpixel(d, p,
+ Math.round(Math.abs(w*(2*(x/w-0.5)))),
+ Math.round(Math.abs(h*(2*((y+0.5)/h-0.5)))),
+ w, h)
+ }
+ },
]
function rgbpixel(d, p, x, y, w, h) {