function complementary(color, value, limit) {
    limit = limit || 255;
    var colorstepped = stepcolor(color, value, limit);
    var r = colorstepped[0];
    var y = colorstepped[1];
    var b = colorstepped[2];

    var ncolor = [limit - r, limit - y, limit - b];
    var ncolorstepped = stepcolor(ncolor, value, limit);
    var nr = ncolorstepped[0];
    var ny = ncolorstepped[1];
    var nb = ncolorstepped[2];

    return [nr, ny, nb];
  }
/**
   * Return the complementary color values for a given RYB color.
   *
   * @param color   {array}  An RYB array
   * @param color   {int}    value, a number between -1 and 1
   * @param count   {limit}  (optional) upper limit, defaults to 255
   *
   * returns a complementary array
   */
Return the complementary color values for a given RYB color.
@param color   {array}  An RYB array
@param color   {int}    value, a number between -1 and 1
@param count   {limit}  (optional) upper limit, defaults to 255

returns a complementary array
Return the complementary color values for a given RYB color . @param color { array } An RYB array @param color { int } value a number between - 1 and 1 @param count { limit } ( optional ) upper limit defaults to 255 returns a complementary array
function complementary(color, value, limit) {
    limit = limit || 255;
    var colorstepped = stepcolor(color, value, limit);
    var r = colorstepped[0];
    var y = colorstepped[1];
    var b = colorstepped[2];
    var ncolor = [limit - r, limit - y, limit - b];
    var ncolorstepped = stepcolor(ncolor, value, limit);
    var nr = ncolorstepped[0];
    var ny = ncolorstepped[1];
    var nb = ncolorstepped[2];
    return [nr, ny, nb];
  }
function complementary ( color , value , limit ) { limit = limit || 255 ; var colorstepped = stepcolor ( color , value , limit ) ; var r = colorstepped [ 0 ] ; var y = colorstepped [ 1 ] ; var b = colorstepped [ 2 ] ; var ncolor = [ limit - r , limit - y , limit - b ] ; var ncolorstepped = stepcolor ( ncolor , value , limit ) ; var nr = ncolorstepped [ 0 ] ; var ny = ncolorstepped [ 1 ] ; var nb = ncolorstepped [ 2 ] ; return [ nr , ny , nb ] ; }
Return the complementary color values for a given RYB color.
Return the complementary color values for a given RYB color .