Cathode Lib - Canvas CRT Filter

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Zamp
Prole
Posts: 14
Joined: Sun Oct 07, 2012 1:30 pm

Cathode Lib - Canvas CRT Filter

Post 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
Attachments
cathode.lua
Cathode Lib 0.8
(2.42 KiB) Downloaded 159 times
cathode.love
Cathode showcase (powered by Bender)
(146.56 KiB) Downloaded 239 times
Last edited by Zamp on Fri Jan 18, 2013 5:31 pm, edited 4 times in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Cathode Lib - Canvas CRT Filter

Post by Robin »

Ha, nice! :D
Help us help you: attach a .love.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Cathode Lib - Canvas CRT Filter

Post 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!
Zamp
Prole
Posts: 14
Joined: Sun Oct 07, 2012 1:30 pm

Re: Cathode Lib - Canvas CRT Filter

Post by Zamp »

Thank you guys :ultraglee:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 72 guests