remaking swatch (sorta): xy data into rgb data?


    Nov 02 2007 | 4:29 pm
    i need to make a simple color picker of a fixed size. My thought is to have an image of the swatch in a pictslider, and I can use xy data to create rgb values. The question is - how do i map the coordinates into RGB? What's the function?

    • Nov 02 2007 | 4:41 pm
      No need for a function. Use the oft-overlooked "sucka" object in the palette (looks like a needle). Can send RGB of whatever you click on, or arbitrary screen coordinates. So you can have a nice big swatch looking any way you want, or a wheel, etc. as a picture, and just put the sucka rectangle on it.
      Also nice for picking colors out of images or movies.
      --CJ
    • Nov 02 2007 | 4:49 pm
      _ johan
    • Nov 02 2007 | 5:43 pm
      suckah...a good idea, but not practical for my needs. that little patch is PERFECT, thanks jvkr.