{"id":21540323,"url":"https://github.com/lostsource/backlight5","last_synced_at":"2025-03-17T21:45:34.811Z","repository":{"id":6152467,"uuid":"7381796","full_name":"lostsource/backlight5","owner":"lostsource","description":"Adds backlight to a Video element using Canvas and CSS3","archived":false,"fork":false,"pushed_at":"2013-01-01T22:12:41.000Z","size":128,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T08:12:11.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"erkartik91/assignment1","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostsource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-31T00:16:25.000Z","updated_at":"2017-09-20T14:04:28.000Z","dependencies_parsed_at":"2022-08-31T15:31:10.326Z","dependency_job_id":null,"html_url":"https://github.com/lostsource/backlight5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbacklight5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbacklight5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbacklight5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbacklight5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostsource","download_url":"https://codeload.github.com/lostsource/backlight5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117066,"owners_count":20400739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T04:18:05.600Z","updated_at":"2025-03-17T21:45:34.785Z","avatar_url":"https://github.com/lostsource.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Experimental backlight for HTML5 video using canvas and CSS3 transitions \r\n\r\n**Live Demo**\r\n\r\n\u003chttp://lostsource.com/2012/12/30/backlight-html5-video.html\u003e\r\n\r\n**Usage**\r\n\r\nAssuming this is your markup:\r\n\r\n\t\u003cvideo id=\"someMovie\" width=\"480\" height=\"264\"\u003e\r\n\t\t\u003csource src=\"movie.ogv\" type='video/ogg'/\u003e\r\n\t\t\u003csource src=\"movie.webm\" type='video/webm'/\u003e\r\n\t\t\u003csource src=\"movie.mp4\" type='video/mp4'/\u003e\r\n\t\u003c/video\u003e\r\n\r\nInclude `backlight5.js` in your page and add the following line\r\n\r\n    var backlight = Backlight5(document.getElementById('someMovie'));\r\n\r\nSettings can be modified at runtime\r\n\r\n    // ammount of 'leds' (different colors) to be used\r\n    // the higher the more CPU intensive (defaults to 5)\r\n\tbacklight.setSeparation(5); \r\n\r\n\t// blurriness of backlight (defaults to 50)\r\n\tbacklight.setBlur(50);\r\n\r\n\t// spread (length) of backlight (defaults to 20)\r\n\tbacklight.setSpread(20);\r\n\r\n\t// speed of led updates in seconds\r\n\t// 0 is instant, defaults to 0.5\r\n\tbacklight.setResponse(0.5);\r\n\r\nSettings can also be specified on initialization\r\n\r\n    var backlight = Backlight5(document.getElementById('someMovie'),{\r\n    \tsepration: 5\r\n    \tblur: 50,\r\n    \tspread: 20,\r\n    \tresponse: 0.5\r\n    });","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsource%2Fbacklight5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostsource%2Fbacklight5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsource%2Fbacklight5/lists"}