class

CrImage::Draw::PolygonStyle

Inherits Reference / Object

PolygonStyle defines the appearance of a polygon

Constructors

build

DSL-style builder

Source
new(outline_color : CrImage::Color::Color | Nil = nil, fill_color : CrImage::Color::Color | Nil = nil, anti_alias : Bool = false, blend_mode : CrImage::Draw::BlendMode | Nil = nil)
Source

Instance methods

anti_alias
Source
anti_alias=(anti_alias : Bool)
Source
blend_mode
Source
blend_mode=(blend_mode : BlendMode | Nil)
Source
fill_color
Source
fill_color=(fill_color : Color::Color | Nil)
Source
outline_color
Source
outline_color=(outline_color : Color::Color | Nil)
Source
with_anti_alias(enabled : Bool = true) : self
Source
with_blend_mode(mode : BlendMode) : self
Source
with_fill(color : Color::Color) : self
Source
with_outline(color : Color::Color) : self

Builder pattern methods for fluent API

Source