Put an iframe with the href https://yikuansun.github.io/sci-fi-flares/flare.html?canvaswidth=[WIDTH]&canvasheight=[HEIGHT]
(the iframe can be hidden if desired). Use postMessage
on the iframe's contentWindow
, the message's data being an object as {pos: [x, y], config: [hue, hotspottype, hotspotscale, streaktype, streakscale, streakbalance, iristype, irisscale, seed, halotype, haloscale]}
. The iframe window will post back a message with the data URL of the lens flare image.
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sci-fi lens flare generator
yikuansun/sci-fi-flares
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sci-fi lens flare generator
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published