CrImage::Util::Captcha::Options
Inherits Struct / Value / Object
CAPTCHA generation options
Constructors
new(width : Int32 = 300, height : Int32 = 100, noise_level : Int32 = 25, line_count : Int32 = 6, background_color : CrImage::Color::RGBA = Color.rgb(240, 240, 240), wobble_strength : Float64 = 3.0, rotation_range : Float64 = 20.0)
SourceInstance methods
background_color
Sourcebackground_color=(background_color : Color::RGBA)
Sourceheight
Sourceheight=(height : Int32)
Sourceline_count
Sourceline_count=(line_count : Int32)
Sourcenoise_level
Sourcenoise_level=(noise_level : Int32)
Sourcerotation_range
Sourcerotation_range=(rotation_range : Float64)
Sourcewidth
Sourcewidth=(width : Int32)
Sourcewobble_strength
Sourcewobble_strength=(wobble_strength : Float64)
Source