File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22# A wrapper for version
33module JRubyArt
4- VERSION = '1.5.3 ' . freeze
4+ VERSION = '1.5.4 ' . freeze
55end
Original file line number Diff line number Diff line change 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
55class 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
2626end
You can’t perform that action at this time.
0 commit comments