Cathode Lib - Canvas CRT Filter
Posted: Fri Dec 14, 2012 5:13 pm
Hi lövers,
Here is a snapshot of a library i'm working on, wich basically applies a filter to a canvas to make it look like an old CRT television.
How it works :
canvas : a simple löve canvas
unit : pixel size used for CRT display
modifier : table used to destroy the screen : { amount of broken lines (between 0 and 1), size of broken lines, amount of vertical destroying (between 0 and 1), size of vertical destroying}
You can try to fiddle with modifier values
Returns a canvas, unit times bigger than the canvas you gave to the function.
Github repo
Here is a snapshot of a library i'm working on, wich basically applies a filter to a canvas to make it look like an old CRT television.
How it works :
Code: Select all
canvas = cathode(canvas, unit, modifier)
unit : pixel size used for CRT display
modifier : table used to destroy the screen : { amount of broken lines (between 0 and 1), size of broken lines, amount of vertical destroying (between 0 and 1), size of vertical destroying}
You can try to fiddle with modifier values
Returns a canvas, unit times bigger than the canvas you gave to the function.
Github repo