Average 2 hex colors together in javascript

后端 未结 8 2022
天命终不由人
天命终不由人 2021-01-31 20:13

Alright thought I would throw this one out there for the crowd to think over.

Given a function (written in javascript) that expects two strings

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 20:30

    I hate sounding like the oh-so-broken jQuery record, but there is a jQuery plugin for this already.

    $.xcolor.average(color, color)

提交回复
热议问题