Skip to content

class Outline

#initialize(top, right, bottom, left) public

Constructor for Hokusai::Outline

Arguments

  • top - top outline width (Float)
  • right - right outline width (Float)
  • bottom - bottom outline width (Float)
  • left - left outline width (Float)

Returns

Returns Hokusai::Outline

.default public

Default outline - zero'ed out.

Returns

Returns Hokusai::Outline

.convert(value) public

Converts value to outline

Arguments

  • value - value can be String of comma delimited float values (top, right, bottom, left) an Array of float values, a Hokusai::Outline value or an Float, which will be applied to uniformly

Examples

ruby
Hokuasi::Outline.convert("1.0,0.0,1.0,0.0")
# Hokusai::Outline(@top = 1.0, @right = 0.0, @bottom = 1.0, @left = 0.0)

Returns

Returns Hokusai::Outline

#present? public

Does this outline have any widths above 0?

Returns

Returns boolean