Skip to content

Commit

Permalink
Mark the rgb space as clampeed
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 10, 2024
1 parent 4d7b708 commit 602c60d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/value/color/space/rgb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ final class RgbColorSpace extends ColorSpace {

const RgbColorSpace()
: super('rgb', const [
LinearChannel('red', 0, 255),
LinearChannel('green', 0, 255),
LinearChannel('blue', 0, 255)
LinearChannel('red', 0, 255, lowerClamped: true, upperClamped: true),
LinearChannel('green', 0, 255,
lowerClamped: true, upperClamped: true),
LinearChannel('blue', 0, 255, lowerClamped: true, upperClamped: true)
]);

SassColor convert(ColorSpace dest, double? red, double? green, double? blue,
Expand Down

0 comments on commit 602c60d

Please sign in to comment.