How to use the red function from color

Find comprehensive JavaScript color.red code examples handpicked from public code repositorys.

1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
Color.prototype.setChannel = function(space, index, val) {
   if (val === undefined) {
      // color.red()
      return this.values[space][index];
   }
   // color.red(100)
   this.values[space][index] = val;
   this.setValues(space, this.values[space]);
   return this;
}
fork icon0
star icon1
watch icon1