From 860a352f3ddac99aeea6b51c47a9951ea20a8363 Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 10 Oct 2015 11:14:58 -0400 Subject: four corners webcam effect --- irssi.txt | 5 +++-- webcam.html | 8 ++++++++ 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) { -- cgit v1.2.3-70-g09d2