We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

extract text from RGB value

Home Forums Puzzles extract text from RGB value

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8850
    mckachun
    Customer

    Hi,
    I am trying to do a color picker.
    I want to extract the RGB value so that I can use the set color puzzle.

    I try to use ” in text” puzzle.
    However, the RGB value is not consistent.
    For example, different case like
    255,255,255
    1,20,255
    That makes me can’t use “get substring” .
    Anyone help?

    #8854

    Hi,

    You can use the find first occurence puzzle to obtain the index of the comma which separates your RGB values. Then you can use this index to determine the range for your substring puzzles.

    Chief 3D Verger | LinkedIn | Twitter

    #8863
    mckachun
    Customer

    Thanks !! I make it ! :yahoo:

    Just wonder I need to use other method if there are more than 2 comma in other case?

    #8864

    I guess then you need to extract a substring first, and search for the first occurrence of the comma, extract a substring again and so on, until the whole string is parsed and all values are extracted.

    Chief 3D Verger | LinkedIn | Twitter

    #8873
    mckachun
    Customer

    I see. Thanks for your advice ~!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.