lib/ws2812/basic.rb
def [](index)
			if index.respond_to?(:to_a)
				index.to_a.map do |i|
					check_index(i)
					Color.from_i(ws2811_led_get(@channel, i))
				end
			else
				check_index(index)
				Color.from_i(ws2811_led_get(@channel, index))
			end
		end
def [](index)
			if index.respond_to?(:to_a)
				index.to_a.map do |i|
					check_index(i)
					Color.from_i(ws2811_led_get(@channel, i))
				end
			else
				check_index(index)
				Color.from_i(ws2811_led_get(@channel, index))
			end
		end
def [] ( index ) if index . respond_to? ( :to_a ) index . to_a . map do | i | check_index ( i ) Color . from_i ( ws2811_led_get ( @channel , i ) ) end else check_index ( index ) Color . from_i ( ws2811_led_get ( @channel , index ) ) end end
Return +Color+ of led located at given index

 Indexed from 0 upto <tt>#count - 1</tt>
Return + Color + of led located at given index