struct Protocol::DOM::RGBA

Overview

A structure holding an RGBA color.

Included Modules

Defined in:

protocol/dom.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def a : Number::Primitive | Nil #

The alpha component, in the [0-1] range (default: 1).


[View source]
def b : Int::Primitive #

The blue component, in the [0-255] range.


[View source]
def g : Int::Primitive #

The green component, in the [0-255] range.


[View source]
def r : Int::Primitive #

The red component, in the [0-255] range.


[View source]