class Cryplot::FillStyle

Overview

class used to attach color or pattern fill options to a type

Included Modules

Defined in:

plot/elems/fillstyle.cr

Instance Method Summary

Instance methods inherited from module Cryplot::BaseMixin(Cryplot::FillStyle)

derived : T derived, repr : String repr, to_s(io : IO) : Nil to_s

Instance Method Detail

def border_hide #

Set the border of the underlying object to be hidden.


[View source]
def border_line_color(color : String) #

Set the border line color of the underlying object.


[View source]
def border_line_width(value : Int32) #

Set the border line width of the underlying object.


[View source]
def border_show(show = true) #

Set the border of the underlying object to be shown or not.


[View source]
def empty #

Set an empty fill style for the underlying object.


[View source]
def intensity(value : Float64) #

Set the fill color intensity of the underlying object with respect to its border color (a value between 0.0 and 1.0).


[View source]
def pattern(num : Int32) #

Set a pattern fill style for the underlying object.


[View source]
def repr : String #
Description copied from module Cryplot::BaseMixin(Cryplot::FillStyle)

returns a string representation of object of some class


[View source]
def solid #

Set a solid fill style for the underlying object.


[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def transparent(active = true) #

Set the fill of the underlying object to be transparent or not.


[View source]