Pixie::Pixel
Constants
BLACK = Pixel.from_rgb(0, 0, 0)
BLUE = Pixel.from_rgb(0, 0, 255)
BROWN = Pixel.from_rgb(165, 42, 42)
COLOR_HEX_REGEX = /^#([A-Fa-f0-9]{9}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
CYAN = Pixel.from_rgb(0, 255, 255)
GRAY = Pixel.from_rgb(128, 128, 128)
GREEN = Pixel.from_rgb(0, 255, 0)
MAGENTA = Pixel.from_rgb(255, 0, 255)
ORANGE = Pixel.from_rgb(255, 165, 0)
PINK = Pixel.from_rgb(255, 192, 203)
PURPLE = Pixel.from_rgb(128, 0, 128)
RED = Pixel.from_rgb(255, 0, 0)
TRANSPARENT = Pixel.from_rgb(0, 0, 0, 0)
WHITE = Pixel.from_rgb(255, 255, 255)
YELLOW = Pixel.from_rgb(255, 255, 0)
Constructors
new
SourceClass methods
Instance methods
<=>(other : Pixel)
Source==(other : Pixel)
Sourcealpha
Sourcealpha_quantum
Sourceblack
Sourceblack_quantum
Sourceblue
Sourceblue_quantum
Sourceclear
Sourceclone
Sourcecyan
Sourcecyan_quantum
Sourcefuzz
Sourcegreen
Sourcegreen_quantum
Sourcehsl
Sourceindex
Sourceinfo
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
magenta
Sourcemagenta_quantum
Sourcenormalized_string
Sourcequantum_packet
Sourcequantum_pixel(image : Image)
Sourcered
Sourcered_quantum
Sourcesize
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
to_unsafe
Sourceyellow
Sourceyellow_quantum
SourceMacros
finalize
Source