lib/rubyXL/convenience_methods.rb in rubyXL-3.3.30 vs lib/rubyXL/convenience_methods.rb in rubyXL-3.3.31

- old
+ new

@@ -1261,11 +1261,11 @@ rgb_color.a = (a * 255).round(0).to_i rgb_color end - private def set_color(t1, t2, t3) + def set_color(t1, t2, t3) color = 0 t3 += 1.0 if (t3 < 0) t3 -= 1.0 if (t3 > 1) @@ -1279,9 +1279,10 @@ color = t2; end color end + private :set_color def apply_tint(tint) return self if tint.nil? || tint == 0 if tint < 0 then