Android color picker - updating color array

后端 未结 4 1198
粉色の甜心
粉色の甜心 2020-12-17 02:16

I\'m trying to create a color picker for Android that looks like a minimalistic version of Gimp\'s. So, it has a hue slider and a rectangle with saturation/value variants of

4条回答
  •  Happy的楠姐
    2020-12-17 02:58

    One possibility is to pre-create the rectangles on your developer PC for each slider position, embed them as resources, and then swap in the right one when the slider changes. This may make for a portly application, but it will be nice and quick.

    I have not dealt with the 2D graphics API much, so I don't know if there are other possibilities (e.g., color matrices).

提交回复
热议问题