rgb method

Color rgb(
  1. dynamic r,
  2. [dynamic g,
  3. dynamic b]
)

Creates an opaque color object from decimal red, green and blue (RGB) values. Literal color values in standard HTML/CSS formats may also be used to define colors, for example #ff0000.

Parameters: red: An integer 0-255 or percentage 0-100%. green: An integer 0-255 or percentage 0-100%. blue: An integer 0-255 or percentage 0-100%. Returns: color Example: rgb(90, 129, 32) Output: #5a8120

Implementation

Color rgb(dynamic r, [dynamic g, dynamic b]) {
  final color = rgba(r, g, b, 1.0);
  color?.value = 'rgb';
  return color;

// 3.8.0 20180729
//  rgb: function (r, g, b) {
//      var color = colorFunctions.rgba(r, g, b, 1.0);
//      if (color) {
//          color.value = 'rgb';
//          return color;
//      }
//  },
}