PColorRGBA class
- Inheritance
- Available extensions
Constructors
- PColorRGBA(int r, int g, int b, double a)
- PColorRGBA.fromABGR(int p)
- PColorRGBA.fromARGB(int p)
-
PColorRGBA.fromJson(Map<
String, dynamic> j) -
factory
- PColorRGBA.fromRGBA(int p)
Properties
- a → int
-
no setteroverride
- abgrInt → int
-
This color in
ABGR
format.no setteroverride - alpha → double
-
The alpha value.
final
- argbInt → int
-
This color in
ARGB
format.no setteroverride - asColor → Color
-
Available on PColor, provided by the PColorExtension extension
no setter - b → int
-
The blue value.
finalinherited
- className → String
-
no setteroverride
- g → int
-
The green value.
finalinherited
- hasAlpha → bool
-
Returns
true
if this color has alpha.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- hsv → ({double h, double s, double v})
-
Returns a HSV record.
no setterinherited
- hsva → ({double a, double h, double s, double v})
-
Returns a HSVA record.
no setteroverride
- isFullyTransparent → bool
-
Returns
true
if this color alpha is0.0
.no setteroverride - r → int
-
The read value.
finalinherited
- rgb → ({int b, int g, int r})
-
Returns a RGB record.
no setterinherited
- rgba → ({double a, int b, int g, int r})
-
Returns a RGBA record.
no setteroverride
- rgbaInt → int
-
This color in
RGBA
format.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? r, int? g, int? b, double? alpha}) → PColorRGB -
override
-
darker(
double ratio) → PColor -
Returns a darker color.
inherited
-
distanceA(
PColorRGB other) → int -
inherited
-
distanceB(
PColorRGB other) → int -
inherited
-
distanceG(
PColorRGB other) → int -
inherited
-
distanceR(
PColorRGB other) → int -
inherited
-
lighter(
double ratio) → PColor -
Returns a lighter color.
inherited
-
maxDistance(
PColorRGB other) → int -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toJsonEncoded(
{bool pretty = false}) → String -
Available on WithJson, provided by the WithJsonExtension extension
-
toPColorRGB(
) → PColorRGB -
Converts this instances to a PColorRGB.
override
-
toPColorRGBA(
) → PColorRGBA -
Converts this instances to a PColorRGBA.
override
-
toRGB(
) → String -
Converts to the
RGB
format.inherited -
toRGBA(
) → String -
Converts to the
RGBA
format.override -
toString(
) → String -
A string representation of this object.
override
-
toStyle(
{int? size}) → PStyle -
Returns a PStyle using
this
ascolor
and optional parametersize
.inherited -
withAlpha(
double alpha) → PColorRGB -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited