Skip to content

Commit 4abdd30

Browse files
committed
prefer colors to pcolors
1 parent b83499b commit 4abdd30

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**v1.5.4** Add color_group library, remove web_array helper method
2+
13
**v1.5.3** Update to expect processing-3.4
24

35
**v1.5.2** JRuby downloads have moved

lib/jruby_art/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22
# A wrapper for version
33
module JRubyArt
4-
VERSION = '1.5.3'.freeze
4+
VERSION = '1.5.4'.freeze
55
end

library/color_group/color_group.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
# class wraps a java color array, supports shuffle!, last and ruby_string
44
# as well as ability to initialize with an array of "web" color string
55
class ColorGroup
6-
attr_reader :pcolors
6+
attr_reader :colors
77
def initialize(p5cols)
8-
@pcolors = p5cols
8+
@colors = p5cols
99
end
1010

1111
def self.from_web_array(web)
1212
ColorGroup.new(ColorUtil.web_array(web))
1313
end
1414

1515
def shuffle!
16-
@pcolors = ColorUtil.shuffle(pcolors)
16+
@colors = ColorUtil.shuffle(colors)
1717
end
1818

1919
def ruby_string
20-
ColorUtil.rubyString(pcolors)
20+
ColorUtil.rubyString(colors)
2121
end
2222

2323
def last
24-
pcolors[0]
24+
colors[0]
2525
end
2626
end

0 commit comments

Comments
 (0)