Skip to content

Commit 6899e66

Browse files
committed
add mesh_grid method
1 parent f98fa9b commit 6899e66

File tree

7 files changed

+1299
-1241
lines changed

7 files changed

+1299
-1241
lines changed

library/video_event/video_event.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class Processing::App
2-
include Java::MonkstoneVideoevent::VideoInterface
2+
include Java::MonkstoneVideoevent::MovieEvent
3+
include Java::MonkstoneVideoevent::CaptureEvent
34
end

src/main/java/monkstone/MathToolModule.java

Lines changed: 253 additions & 203 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2015-19 Martin Prout
3+
*
4+
* This library is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License as published by the Free Software Foundation; either
7+
* version 2.1 of the License, or (at your option) any later version.
8+
*
9+
* http://creativecommons.org/licenses/LGPL/2.1/
10+
*
11+
* This library is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
* Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public
17+
* License along with this library; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*/
20+
21+
package monkstone.videoevent;
22+
import processing.video.Capture;
23+
24+
@FunctionalInterface
25+
public interface CaptureEvent{
26+
public void captureEvent(Capture capture);
27+
}
Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,32 @@
1-
/*
2-
* Copyright (c) 2018-19 Martin Prout
3-
*
1+
/*
2+
* Copyright (c) 2015-19 Martin Prout
3+
*
44
* This library is free software; you can redistribute it and/or
5-
* modify it under the terms of the GNU General Public
5+
* modify it under the terms of the GNU Lesser General Public
66
* License as published by the Free Software Foundation; either
7-
* version 3.0 of the License, or (at your option) any later version.
8-
*
7+
* version 2.1 of the License, or (at your option) any later version.
8+
*
99
* http://creativecommons.org/licenses/LGPL/2.1/
10-
*
10+
*
1111
* This library is distributed in the hope that it will be useful,
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1414
* Lesser General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public
15+
*
16+
* You should have received a copy of the GNU Lesser General Public
1717
* License along with this library; if not, write to the Free Software
1818
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

2121
package monkstone.videoevent;
2222
import processing.video.Movie;
23-
import processing.video.Capture;
23+
2424
/**
2525
* This interface makes it easier/possible to use the reflection methods
26-
* from Movie and Capture classes in Processing::App in picrate
27-
*
26+
* from Movie and Capture classes in Processing::App in JRubyArt
27+
* @author Martin Prout
2828
*/
29-
public interface VideoInterface {
30-
/**
31-
* Used to implement reflection method in PApplet
32-
* @see processing.video.Movie
33-
* @param movie Movie
34-
*/
29+
@FunctionalInterface
30+
public interface MovieEvent {
3531
public void movieEvent(Movie movie);
36-
/**
37-
* Used to implement reflection method in PApplet
38-
* @see processing.video.Capture
39-
* @param capture Capture
40-
*/
41-
public void captureEvent(Capture capture);
4232
}

0 commit comments

Comments
 (0)