struct

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

Instance methods

background_color
Source
background_color=(background_color : Color::RGBA)
Source
height
Source
height=(height : Int32)
Source
line_count
Source
line_count=(line_count : Int32)
Source
noise_level
Source
noise_level=(noise_level : Int32)
Source
rotation_range
Source
rotation_range=(rotation_range : Float64)
Source
width
Source
width=(width : Int32)
Source
wobble_strength
Source
wobble_strength=(wobble_strength : Float64)
Source