Skip to content

Commit

Permalink
Merge v1.0.3
Browse files Browse the repository at this point in the history
- Fix `PColorRGB.a`.
  • Loading branch information
gmpassos authored Dec 7, 2022
2 parents f99fac8 + aed5359 commit ebc1c5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.3

- Fix `PColorRGB.a`.

## 1.0.2

- `PCanvasEvent` now is abstract:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pcanvas_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit ebc1c5d

Please sign in to comment.