0
0
Fork 0
This commit is contained in:
Stormwind 2015-10-22 12:18:34 +02:00
parent b8cb251ef8
commit b25e71486a
1 changed files with 3 additions and 3 deletions

View File

@ -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)