picrate 1.1.0-java → 1.2.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb2487a2462e4b2b2058b08763dc285b098aacfeb745958ac5eb3c2232130b31
4
- data.tar.gz: e949437e7e00f0625e11866b9149fb302d6fbb1c4916e28d0f70b75e3f638ef6
3
+ metadata.gz: 47ad3ac327fcc88763b9b0e9e857761409b95e6bdc1b80305d3b74752099a7c2
4
+ data.tar.gz: 62b68f555506c6fd073ad4e998f540add1463d434c558d621baba114f2f56c9f
5
5
  SHA512:
6
- metadata.gz: 89d81580cf20373bbd7b2715262ca940d619f499560d1014e728dfe08bcfc7e286ee5cfdc92edf83903740ab8702e2e3609b8f2334908e0d96dfabbc012729bc
7
- data.tar.gz: 0f35bae8cc19cb1b77d3f0984bf5a51a5c36b8c924c48b45d83a17b012a5604726c32cc9a2265044602527160034b33558ea9139571be099b8d8f014da2d7245
6
+ metadata.gz: 72e2eea3d2c7342489990f24b7ddc7920ea4d7c3c24672253140dada9533f57d05efc73d0af51857bbd3af3265bd7e0d590cf10ff68c661df541cb0e5934d90d
7
+ data.tar.gz: 905ec17579a21892d7a8961bceff53214544ebf8947f9e23ab3faf3f88534be5061f8b96916836c2db09c5eabed7e9a3b73728dd9508df8738c0d0229380ce0b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ v1.2.0 Update samples to use safer fonts, add linux specific suggestion on missing fonts PFont.java, fix :web_to_color_array(web).
2
+
1
3
  v1.1.0 Bring up to date with latest development branch, except still target Stretch and Oracle jdk8, add Gemfile to help version locking.
2
4
 
3
5
  v1.0.0 Release for Raspbian Stretch and Oracle java
@@ -55,6 +55,10 @@ module Processing
55
55
  super(hex_color(args[0]))
56
56
  end
57
57
 
58
+ def web_to_color_array(web)
59
+ Java::Monkstone::ColorUtil.webArray(web.to_java(:string))
60
+ end
61
+
58
62
  def int_to_ruby_colors(hex)
59
63
  Java::Monkstone::ColorUtil.rubyString(hex)
60
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiCrate
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
data/pom.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  project 'picrate', 'http://maven.apache.org' do
2
2
 
3
3
  model_version '4.0.0'
4
- id 'ruby-processing:picrate:1.1.0'
4
+ id 'ruby-processing:picrate:1.2.0'
5
5
  packaging 'jar'
6
6
 
7
7
  description 'An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.'
data/pom.xml CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>ruby-processing</groupId>
13
13
  <artifactId>picrate</artifactId>
14
- <version>1.1.0</version>
14
+ <version>1.2.0</version>
15
15
  <name>picrate</name>
16
16
  <description>An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.</description>
17
17
  <url>http://maven.apache.org</url>
@@ -50,11 +50,11 @@ public class ColorUtil {
50
50
  }
51
51
 
52
52
  /**
53
- *
53
+ * Avoid using VarArgs here
54
54
  * @param web Array of web (hex) String
55
55
  * @return cols of p5 color (int)
56
56
  */
57
- static public int[] webArray(String... web) {
57
+ static public int[] webArray(String[] web) {
58
58
  int[] result = new int[web.length];
59
59
  for (int i = 0; i < web.length; i++) {
60
60
  result[i] = java.awt.Color.decode(web[i]).getRGB();