Skip to content

Commit 52b8e3f

Browse files
committed
Bump copyright date
1 parent dd2bdc4 commit 52b8e3f

19 files changed

+52
-52
lines changed

library/slider/slider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22
# Here's a little library for quickly hooking up in sketch sliders.
3-
# Copyright (c) 2016-18 Martin Prout.
3+
# Copyright (c) 2016-20 Martin Prout.
44

55
java_import 'monkstone.slider.CustomHorizontalSlider'
66
java_import 'monkstone.slider.CustomVerticalSlider'

src/main/java/monkstone/ColorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* in their sketches. Includes a method to efficiently convert an cols of web
44
* strings to an cols of color int, and another to convert an cols of p5 color
55
* (int) to a string that can be used in ruby code (to generate web color cols).
6-
* Copyright (c) 2015-18 Martin Prout.
6+
* Copyright (c) 2015-20 Martin Prout.
77
* This utility is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU Lesser General Public License as published by
99
* the Free Software Foundation; either version 2.1 of the License, or (at

src/main/java/monkstone/MathToolModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* The purpose of this tool is to allow JRubyArt users to use an alternative
33
* to processing.org map, lerp and norm methods in their sketches and to implement
44
* JRubyArt convenenience method grid(width, height, stepW, stepH) { |x, y| do stuff }
5-
* Copyright (c) 2015-19 Martin Prout. This tool is free software; you can
5+
* Copyright (c) 2015-20 Martin Prout. This tool is free software; you can
66
* redistribute it and/or modify it under the terms of the GNU Lesser General
77
* Public License as published by the Free Software Foundation; either version
88
* 2.1 of the License, or (at your option) any later version.

src/main/java/monkstone/PicrateLibrary.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* The purpose of this class is to load the MathTool into PiCrate runtime
3-
* Copyright (C) 18 Martin Prout. This code is free software; you can
2+
* The purpose of this class is to load the MathTool into PiCrate runtime
3+
* Copyright (C) 2018-20 Martin Prout. This code is free software; you can
44
* redistribute it and/or modify it under the terms of the GNU Lesser General
5-
* Public License as published by the Free Software Foundation; either version
5+
* Public License as published by the Free Software Foundation; either version
66
* 2.1 of the License, or (at your option) any later version.
7-
*
7+
*
88
* Obtain a copy of the license at http://www.gnu.org/licenses/gpl-3.0-standalone.html
99
*/
1010

@@ -23,7 +23,7 @@
2323
* @author Martin Prout
2424
*/
2525
public class PicrateLibrary implements Library{
26-
26+
2727
/**
2828
*
2929
* @param runtime
@@ -33,8 +33,8 @@ public static void load(final Ruby runtime) {
3333
Deglut.createDeglut(runtime);
3434
Vec2.createVec2(runtime);
3535
Vec3.createVec3(runtime);
36-
}
37-
36+
}
37+
3838
/**
3939
*
4040
* @param runtime
@@ -44,5 +44,5 @@ public static void load(final Ruby runtime) {
4444
@Override
4545
public void load(final Ruby runtime, boolean wrap) throws IOException {
4646
load(runtime);
47-
}
47+
}
4848
}

src/main/java/monkstone/fastmath/Deglut.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*
2-
* Copyright (c) 2018-19 Martin Prout
3-
*
1+
/*
2+
* Copyright (c) 2018-20 Martin Prout
3+
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public
66
* License as published by the Free Software Foundation; either
77
* version 3.0 of the License, or (at your option) any later version.
8-
*
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-
*
15+
*
1616
* You should have received a copy of the GNU 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
@@ -35,7 +35,7 @@
3535
*/
3636
@JRubyModule(name = "DegLut")
3737
public class Deglut {
38-
38+
3939
/**
4040
* Lookup table for degree cosine/sine, has a fixed precision 1.0
4141
* degrees Quite accurate but imprecise
@@ -49,11 +49,11 @@ public class Deglut {
4949
*
5050
*/
5151
private static boolean initialized = false;
52-
52+
5353
private final static int NINETY = 90;
5454
private final static int FULL = 360;
5555
private static final long serialVersionUID = -1466528933765940101L;
56-
56+
5757
/**
5858
* Initialize sin table with values (first quadrant only)
5959
*/
@@ -65,19 +65,19 @@ public static final void initTable() {
6565
initialized = true;
6666
}
6767
}
68-
68+
6969
/**
7070
*
7171
* @param runtime Ruby
7272
*/
73-
73+
7474
public static void createDeglut(final Ruby runtime){
7575
RubyModule deglutModule = runtime.defineModule("DegLut");
7676
deglutModule.defineAnnotatedMethods(Deglut.class);
7777
Deglut.initTable();
7878
}
79-
80-
79+
80+
8181
/**
8282
*
8383
* @param context ThreadContext
@@ -86,7 +86,7 @@ public static void createDeglut(final Ruby runtime){
8686
* @return sin IRubyObject
8787
*/
8888
@JRubyMethod(name = "sin", module = true)
89-
89+
9090
public static IRubyObject sin(ThreadContext context, IRubyObject recv, IRubyObject other) {
9191
int thet = (int) ((RubyInteger)other).getLongValue();
9292
while (thet < 0) {
@@ -99,7 +99,7 @@ public static IRubyObject sin(ThreadContext context, IRubyObject recv, IRubyObje
9999
? -SIN_DEG_LUT[y] : -SIN_DEG_LUT[NINETY - y];
100100
return context.runtime.newFloat(result);
101101
}
102-
102+
103103
/**
104104
*
105105
* @param context ThreadContext
@@ -119,5 +119,5 @@ public static IRubyObject cos(ThreadContext context, IRubyObject recv, IRubyObje
119119
? -SIN_DEG_LUT[y] : (theta < 270)
120120
? -SIN_DEG_LUT[NINETY - y] : SIN_DEG_LUT[y];
121121
return context.runtime.newFloat(result);
122-
}
122+
}
123123
}

src/main/java/monkstone/filechooser/Chooser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-18 Martin Prout
2+
* Copyright (c) 2016-20 Martin Prout
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public

src/main/java/monkstone/slider/CustomHorizontalSlider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-18 Martin Prout
2+
* Copyright (c) 2016-20 Martin Prout
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public

src/main/java/monkstone/slider/CustomVerticalSlider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-18 Martin Prout
2+
* Copyright (c) 2016-20 Martin Prout
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public

src/main/java/monkstone/slider/SimpleHorizontalSlider.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*
2-
* Copyright (c) 2016-18 Martin Prout
3-
*
1+
/*
2+
* Copyright (c) 2016-20 Martin Prout
3+
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public
66
* License as published by the Free Software Foundation; either
77
* version 3.0 of the License, or (at your option) any later version.
8-
*
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-
*
15+
*
1616
* You should have received a copy of the GNU 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
@@ -27,10 +27,10 @@
2727
* @author Martin Prout
2828
*/
2929
public class SimpleHorizontalSlider extends SimpleSlider {
30-
30+
3131
final int SPACING = 20;
3232
final int LEFT_SPC = SPACING * 2;
33-
final int RIGHT_SPC = SPACING * 4;
33+
final int RIGHT_SPC = SPACING * 4;
3434

3535
/**
3636
*
@@ -62,7 +62,7 @@ private void setActive(boolean active) {
6262
applet.registerMethod("dispose", this);
6363
applet.registerMethod("draw", this);
6464
} else {
65-
applet.unregisterMethod("draw", this);
65+
applet.unregisterMethod("draw", this);
6666
}
6767
}
6868

@@ -84,7 +84,7 @@ void displayText() {
8484
applet.text(String.format(lFormat, (int) vMax), pX + pW, pY );
8585
}
8686
}
87-
87+
8888
@Override
8989
void drawGui() {
9090
if (backgroundVisible) {
@@ -94,7 +94,7 @@ void drawGui() {
9494
applet.noStroke();
9595
applet.fill(255);
9696
applet.ellipse(pX + pScaled, pY + pH / 2, 10, 10);
97-
}
97+
}
9898

9999
/**
100100
*
@@ -136,7 +136,7 @@ void checkKeyboard() {
136136
pScaled = map(pValue, vMin, vMax, 0, pW);
137137
}
138138
}
139-
139+
140140
/**
141141
*
142142
* @return

src/main/java/monkstone/slider/SimpleVerticalSlider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-18 Martin Prout
2+
* Copyright (c) 2016-20 Martin Prout
33
*
44
* This library is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public

0 commit comments

Comments
 (0)