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 3, 2024
1 parent 4d7b708 commit 63f33e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,9 @@ 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 63f33e6

Please sign in to comment.