diff --git a/CHANGELOG.md b/CHANGELOG.md index cf0b973..6388817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.3 + +- Fix `PColorRGB.a`. + ## 1.0.2 - `PCanvasEvent` now is abstract: diff --git a/lib/src/pcanvas_base.dart b/lib/src/pcanvas_base.dart index 5c1c83a..c0b7b43 100644 --- a/lib/src/pcanvas_base.dart +++ b/lib/src/pcanvas_base.dart @@ -1003,7 +1003,7 @@ class PColorRGB extends PColor { @override bool get hasAlpha => false; - int get a => 1; + int get a => 255; int maxDistance(PColorRGB other) { var rd = (r - other.r).abs(); diff --git a/pubspec.yaml b/pubspec.yaml index e4c3f51..f2c8c31 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: pcanvas description: A portable canvas that can work in many platforms (Flutter, Web, Desktop, in-memory Image). -version: 1.0.2 +version: 1.0.3 homepage: https://github.com/gmpassos/pcanvas environment: