From b25e71486a9e934e827fd09651a8738c7ebb0ad5 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Thu, 22 Oct 2015 12:18:34 +0200 Subject: [PATCH] Fix typo --- lib/rubella/output/image.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubella/output/image.rb b/lib/rubella/output/image.rb index 1a256b1..9947bc8 100644 --- a/lib/rubella/output/image.rb +++ b/lib/rubella/output/image.rb @@ -42,12 +42,12 @@ module Rubella # draw a red rectangle on the white background core = Magick::Draw.new - idensity = 127.5 * part + intensity = 127.5 * part # Fix for float stupidity - idensity = 127.5 if idensity > 127.5 + intensity = 127.5 if intensity > 127.5 # Get the correct value - l = (255-idensity).round + l = (255-intensity).round # Draw core.fill(Magick::Pixel.from_hsla(0, 255, l, 1).to_color)