Page 1 of 1

Cathode Lib - Canvas CRT Filter

Posted: Fri Dec 14, 2012 5:13 pm
by Zamp
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.

Image

How it works :

Code: Select all

canvas = cathode(canvas, unit, modifier)
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

Re: Cathode Lib - Canvas CRT Filter

Posted: Fri Dec 14, 2012 5:51 pm
by Robin
Ha, nice! :D

Re: Cathode Lib - Canvas CRT Filter

Posted: Fri Dec 14, 2012 6:33 pm
by Roland_Yonaba
You do want me to purchase a new computer, don't you ?
Too bad I can't try canvas. Anyway, I run it on a friend's computer, and it looked so nice!

Re: Cathode Lib - Canvas CRT Filter

Posted: Fri Dec 14, 2012 8:06 pm
by Zamp
Thank you guys :ultraglee: