Class PNG::Color
In: lib/PatchedPNG.rb
Parent: Object
PNG String dot/f_53.png

RGBA colors

Methods

a   b   blend   g   intensity   new   r  

Constants

Background = Color.new 0xFF, 0xFF, 0xFF, 0x00   Transparent white
White = Color.new 0xFF, 0xFF, 0xFF, 0xFF
Black = Color.new 0x00, 0x00, 0x00, 0xFF
Gray = Color.new 0x7F, 0x7F, 0x7F, 0xFF
Red = Color.new 0xFF, 0x00, 0x00, 0xFF
Orange = Color.new 0xFF, 0xA5, 0x00, 0xFF
Yellow = Color.new 0xFF, 0xFF, 0x00, 0xFF
Green = Color.new 0x00, 0xFF, 0x00, 0xFF
Blue = Color.new 0x00, 0x00, 0xFF, 0xFF
Purple = Color.new 0XFF, 0x00, 0xFF, 0xFF

Attributes

values  [R] 

Public Class methods

Creates a new color with values red, green, blue, and alpha.

Public Instance methods

Alpha transparency component

Blue component

Blends color into this color returning a new blended color.

Green component

Returns a new color with an alpha value adjusted by i.

Red component

[Validate]