Created
April 12, 2016 00:45
-
-
Save benjavides/4dfc4dda978d948993ecd8d7ccda131d to your computer and use it in GitHub Desktop.
P5JS con Seriously. Hay que importar la librería y el efecto kaleidscope al archivo html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| canvas = createCanvas(640,480, WEBGL); | |
| canvas.id("p5canvas"); | |
| video = createCapture(VIDEO); | |
| video.size(640,480); | |
| video.id("p5video"); | |
| video.hide(); | |
| var seriously = new Seriously(); | |
| var src = seriously.source("#p5video"); | |
| var target = seriously.target("#p5canvas"); | |
| kalei_segments_slider = createSlider(0,10,6); | |
| kalei_segments_slider.id("segmentsslider"); | |
| var kalei = seriously.effect("kaleidoscope"); | |
| kalei.segments = "#segmentsslider"; | |
| kalei.source = src; | |
| target.source = kalei; | |
| seriously.go() | |
| } | |
| function draw() { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment