Skip to content

Instantly share code, notes, and snippets.

View williammustaffa's full-sized avatar
🎯

William Lima williammustaffa

🎯
View GitHub Profile
/**
* Usage:
* Go to https://objectedge.slack.com/files/{username}
* and run this code in the browser console
*/
(function() {
var time = new Date().getTime();
var url = {
list: "/api/files.list?t=" + time,
del: "/api/files.delete?t=" + time
@williammustaffa
williammustaffa / CANVAS RETROFFECT
Last active August 29, 2015 14:15
Effects: RGB shift, Scan Lines, TV Shine, TV noise
/*
* SCRIPT BY WILLIAM LIMA
* NAME: CANVAS RETROFFECT
* DATE: 08/02/2015
* LANGUAGE: JAVASCRIPT
* USAGE: draw_rgb_shift(CanvasElement,EnableRgbShift,EnableScanLine,EnableShine,EnableTvNoise)
* USE THE FUNCTION INTO ### AN ANIMATION FRAME ### BUT CREATE IT OUTSIDE
*/
var room={height: canvas.height,width: canvas.width,currentTime:0}
function draw_rgb_shift(canvas,rgbshift,scanline,shine,noise){