Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. color sensing

color sensing

Scheduled Pinned Locked Moved Help
6 Posts 3 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Emerson Rowberry
    wrote on last edited by
    #1

    how to sense a range of colors or multiple values between two selected colors

    JaecadeJnightJ CreatiCodeI 2 Replies Last reply
    1
    • E Emerson Rowberry

      how to sense a range of colors or multiple values between two selected colors

      JaecadeJnightJ Offline
      JaecadeJnightJ Offline
      JaecadeJnight
      Mod Helper
      wrote on last edited by jeffreyrb03-gmail
      #2

      @ejrowberry09-12248f6d I don’t know what you mean exactly but here are blocks for sensing colors in general:
      b15dc6c5-18a2-4fc2-b71f-abe2f3b2618a-image.png
      1st one is from automation, second is in events, and the bottom one is in sensing.

      Now, to actually answer your question in a helpful way, first, you can use this online tool if you need it for like a one time thing:
      https://meyerweb.com/eric/tools/color-blend/#FF0000:990033:10:hex
      7a6810ad-3ee3-41c0-b581-bc8326e41e6a-image.png

      And for blocks, well blocks for that doesn’t exist.

      #LLJW
      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

      1 Reply Last reply
      0
      • E Emerson Rowberry

        how to sense a range of colors or multiple values between two selected colors

        CreatiCodeI Online
        CreatiCodeI Online
        CreatiCode
        wrote on last edited by
        #3

        @ejrowberry09-12248f6d

        Maybe you can try to use “OR” to combine multiple color sensing blocks?

        63ee80dc-b0be-4ba2-bb78-1588a4c06a14-image.png

        E 1 Reply Last reply
        1
        • CreatiCodeI CreatiCode

          @ejrowberry09-12248f6d

          Maybe you can try to use “OR” to combine multiple color sensing blocks?

          63ee80dc-b0be-4ba2-bb78-1588a4c06a14-image.png

          E Offline
          E Offline
          Emerson Rowberry
          wrote on last edited by
          #4

          @info-creaticode I mean that I want to do something like select one shade of green and another shade of green, and everything in-between without having to write every hex code manually and hardcode it

          CreatiCodeI 1 Reply Last reply
          1
          • E Emerson Rowberry

            @info-creaticode I mean that I want to do something like select one shade of green and another shade of green, and everything in-between without having to write every hex code manually and hardcode it

            CreatiCodeI Online
            CreatiCodeI Online
            CreatiCode
            wrote on last edited by
            #5

            @ejrowberry09-12248f6d

            In that case, it is easier to get the value of the color component and check if it is within a range. For example, if the color component is between 30 and 38, it is some kind of green:

            922bf3de-9e9d-4023-b9ed-43478c0c4572-image.png

            You can go further by checking saturation and brightness as well if you need it to be more precise.

            E 1 Reply Last reply
            1
            • CreatiCodeI CreatiCode

              @ejrowberry09-12248f6d

              In that case, it is easier to get the value of the color component and check if it is within a range. For example, if the color component is between 30 and 38, it is some kind of green:

              922bf3de-9e9d-4023-b9ed-43478c0c4572-image.png

              You can go further by checking saturation and brightness as well if you need it to be more precise.

              E Offline
              E Offline
              Emerson Rowberry
              wrote on last edited by
              #6

              @info-creaticode THANK YOU SO MUCH

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • CreatiCode