Class: Imagekitio::Models::SolidColorOverlayTransformation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::SolidColorOverlayTransformation
- Defined in:
- lib/imagekitio/models/solid_color_overlay_transformation.rb
Defined Under Namespace
Modules: Gradient, Height, Radius, Width
Instance Attribute Summary collapse
-
#alpha ⇒ Float?
Specifies the transparency level of the solid color overlay.
-
#background ⇒ String?
Specifies the background color of the solid color overlay.
-
#gradient ⇒ Boolean, ...
Creates a linear gradient with two colors.
-
#height ⇒ Float, ...
Controls the height of the solid color overlay.
-
#radius ⇒ Float, ...
Specifies the corner radius of the solid color overlay.
-
#width ⇒ Float, ...
Controls the width of the solid color overlay.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alpha: nil, background: nil, gradient: nil, height: nil, radius: nil, width: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see SolidColorOverlayTransformation for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(alpha: nil, background: nil, gradient: nil, height: nil, radius: nil, width: nil) ⇒ Object
Some parameter documentations has been truncated, see Imagekitio::Models::SolidColorOverlayTransformation for more details.
|
|
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 53
|
Instance Attribute Details
#alpha ⇒ Float?
Specifies the transparency level of the solid color overlay. Accepts integers from ‘1` to `9`.
11 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 11 optional :alpha, Float |
#background ⇒ String?
Specifies the background color of the solid color overlay. Accepts an RGB hex code (e.g., ‘FF0000`), an RGBA code (e.g., `FFAABB50`), or a color name.
18 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 18 optional :background, String |
#gradient ⇒ Boolean, ...
Creates a linear gradient with two colors. Pass ‘true` for a default gradient, or provide a string for a custom gradient. Only works if the base asset is an image. See [gradient](imagekit.io/docs/effects-and-enhancements#gradient—e-gradient).
27 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 27 optional :gradient, union: -> { Imagekitio::SolidColorOverlayTransformation::Gradient } |
#height ⇒ Float, ...
Controls the height of the solid color overlay. Accepts a numeric value or an arithmetic expression. Learn about [arithmetic expressions](imagekit.io/docs/arithmetic-expressions-in-transformations).
35 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 35 optional :height, union: -> { Imagekitio::SolidColorOverlayTransformation::Height } |
#radius ⇒ Float, ...
Specifies the corner radius of the solid color overlay. Set to ‘max` for circular or oval shape. See [radius](imagekit.io/docs/effects-and-enhancements#radius—r).
43 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 43 optional :radius, union: -> { Imagekitio::SolidColorOverlayTransformation::Radius } |
#width ⇒ Float, ...
Controls the width of the solid color overlay. Accepts a numeric value or an arithmetic expression (e.g., ‘bw_mul_0.2` or `bh_div_2`). Learn about [arithmetic expressions](imagekit.io/docs/arithmetic-expressions-in-transformations).
51 |
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 51 optional :width, union: -> { Imagekitio::SolidColorOverlayTransformation::Width } |
Class Method Details
.variants ⇒ Array(Float, Symbol, :max)
|
|
# File 'lib/imagekitio/models/solid_color_overlay_transformation.rb', line 82
|