Open VorontsovIE opened 10 years ago
New class SolidFill in order to fill image with monochromatic background. It allows one to write image constructors consistenly:
Image.new(size_x, size_y, HatchFill.new('white', 'red')) Image.new(size_x, size_y, SolidFill.new('bisque'))
syntax for both gradient/hatched and for solid backgrounds instead of two completely different syntaxes
Image.new(size_x,size_y, HatchFill.new('white','red')) Image.new(size_x,size_y){ self.background_color = 'bisque' }
New class SolidFill in order to fill image with monochromatic background. It allows one to write image constructors consistenly:
syntax for both gradient/hatched and for solid backgrounds instead of two completely different syntaxes