struct UI::Color

Overview

Value type representing an RGBA color

Defined in:

ui/view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(r : Float64, g : Float64, b : Float64, a : Float64 = 1.0) #

[View source]

Instance Method Detail

def a : Float64 #

def b : Float64 #

def clone #

[View source]
def copy_with(r _r = @r, g _g = @g, b _b = @b, a _a = @a) #

[View source]
def g : Float64 #

def r : Float64 #