Hi Nils,
hätte gerne folgende Funktion integriert:
https://github.com/maroslaw/rainyday.js/
die folgendes auf dem Hintergrund erzeugt:
http://maroslaw.github.io/rainyday.js/demo012_4.html dm4.jpg
in der custom.js stelle ich mir folgenden CODE vor:
Geht das ?
Gruss Hans
PS.. über diese Schnittstelle könnte man auch SVG Ikons integrieren.
hätte gerne folgende Funktion integriert:
https://github.com/maroslaw/rainyday.js/
die folgendes auf dem Hintergrund erzeugt:
http://maroslaw.github.io/rainyday.js/demo012_4.html dm4.jpg
in der custom.js stelle ich mir folgenden CODE vor:
Code:
xAPI.functions.XXRAINYDAY = function( oarg ) { debug(2,"XXRAINYDAY",oarg); oarg.item.type = "ICO"; oarg.item.image.onload = function(){ oarg.item.xxapi.engine = new RainyDay({ image: this }); oarg.item.xxapi.engine.rain([ [1, 2, 8000] ]); oarg.item.xxapi.engine.rain([ [3, 3, 0.88], [5, 5, 0.9], [6, 2, 1] ], 100); } oarg.item.image.crossOrigin = 'anonymous'; } // XXRAINYDAY
Gruss Hans
PS.. über diese Schnittstelle könnte man auch SVG Ikons integrieren.
Kommentar