Shop OBEX P1 Docs P2 Docs Learn Events
ColorPal RGB Decimal Conversion — Parallax Forums

ColorPal RGB Decimal Conversion

maldridgemaldridge Posts: 37
edited 2011-02-27 10:08 in BASIC Stamp
I am using a ColorPal in a project to tell what the color is of some incoming items. The project then sorts them based on their color. My question is: using the macro sense command (["= m !"]), how can I get standard RGB color values? Ideally I would like to have these values fall between 0 and 255 so that I can use standard color charts for calibration.

Also, how should I go about averaging these values over time so that I can have a +- range. For example if the color should be 0R 123G 0B, but should b 0R 125G 0B, how can I allow the basic stamp to compensate for reading variations.
Sign In or Register to comment.