Displaying 1 result from an estimated 1 matches for "mix_with".
Did you mean:
max_width
2007 Aug 25
2
Color gem
...error:
>> red = Color.new(''ff0000'')
=> #<Color:0x3685990 @saturation=1.0, @hue=0.0, @lightness=0.5>
>> yellow = Color.new(''ffff00'')
=> #<Color:0x367e5a0 @saturation=1.0, @hue=0.166666666666667,
@lightness=0.5>
>> orange = red.mix_with yellow, 0.5
=> #<Color:0x3675c34 @saturation=0.503875968992248,
@hue=0.0820512820512821, @lightness=0.252941176470588>
>> orange.to_hex
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while eval...