Welcome Guest
Log In | Register )
You last visited January 22, 2017, 11:11 am
All times shown are
Eastern Time (GMT-5:00)

Mapping PICK 3 data into RGB color cube.

Topic closed. 6 replies. Last post 11 years ago by JADELottery.

Page 1 of 1
PrintE-mailLink
JADELottery's avatar - YingYangYong 01.PNG
The Quantum Master
West Concord, MN
United States
Member #21
December 7, 2001
3684 Posts
Offline
Posted: April 13, 2006, 6:20 am - IP Logged

RGB mapping of PICK 3 numbers

PICK 3 data can be mapped into the RGB color cube and represented as a color.

There are enough data points to evenly distribute the data throughout the cube.

The basic formula is:

    c_dec = d * (85 / 3), where d = {0,1,2,3,4,5,6,7,8,9}
    c_dec is the decimal value of the individual color point 

To get the 0 to 255 integer value, round d * (85 / 3) to the nearest whole number.

    c_int = round(d * (85 / 3),0), d = {0,1,2,3,4,5,6,7,8,9}
    c_int is the 0 to 255 integer value
    valid function in both VB and Excel

For some other application you may need the hexadecimal value.

    for VB: c_hex = hex(c)  for Excel: c_hex = DEC2HEX(c)
    these both return a string value.

Now, use these to map PICK 3 data (A, B, C) to (r, g, b) in either decimal or
hexadecimal.


    B                            g                        g
  9|    C                    255|    b                  FF|    b
    |  9/                        |  /255                  |  /FF
    |  /              --->      |  /              --->   |  /
    | /                          | /                      | /
    |/                          |/                        |/
 ___|____________ A          ___|____________ r        ___|___________ r
  /|0          9              /|0        255            /|00      FF
  / |                          / |                      / |



If (A, B, C) are the coordinates in the three dimensional PICK 3 data cube,
then the (r, g, b) coordinates and be found as follows:

    for integer values
    r = round(A * (85 / 3), 0) , g = round(B * (85 / 3),0) , b = round(C * (85 / 3),0)

    for VB hexadecimal values
    r_hex = hex(r) , g_hex = hex(g) , b_hex = hex(b)

    for Excel hexadecimal values
    r_hex = dec2hex(r) , g_hex = dec2hex(g) , b_hex = dec2hex(b)

 

Here's a sample from my state's Wisconsin PICK 3, 2006-03-24 to 2006-04-12.

 

DataDEC 0 - 255Hex 00 - FFColor
ABCRGBRGB               
11728281981C1CC6         
757198142198C68EC6       
50714201988E00C6       
944255113113FF7171       
49511325514271FF8E       
63517085142AA558E       
018028227001CE3       
2185728227391CE3       
20257057390039       
22657571703939AA       
3758519814255C68E       
52114257288E391C       
350851420558E00       
656170142170AA8EAA       
22057570393900       
382852275755E339       
76119817028C6AA1C       
93925585255FF55FF       
075019814200C68E       
91825528227FF1CE3       

For a complete list of the colors go here PICK 3 data to color

 

Presented 'AS IS' and for Entertainment Purposes Only.
Any gain or loss is your responsibility.
Use at your own risk.

Order is a Subset of Chaos
Knowledge is Beyond Belief
Wisdom is Not Censored
Douglas Paul Smallish
Jehocifer

    Todd's avatar - Cylon 2.gif
    Chief Bottle Washer
    New Jersey
    United States
    Member #1
    May 31, 2000
    23350 Posts
    Online
    Posted: April 13, 2006, 8:11 am - IP Logged

    Very interesting!  Have you figured out how to use the data yet?

     

    Check the State Lottery Report Card
    What grade did your lottery earn?

     

    Sign the Petition for True Lottery Drawings
    Help eliminate computerized drawings!

      JADELottery's avatar - YingYangYong 01.PNG
      The Quantum Master
      West Concord, MN
      United States
      Member #21
      December 7, 2001
      3684 Posts
      Offline
      Posted: April 13, 2006, 9:07 am - IP Logged

      I have a few ideas I'm working on. Some involving vector analysis and other related analysis with color, color banding, and other physics like color analysis components. It's in it's early stage. I'm also looking at PICK 4 color cube mapping.

      Presented 'AS IS' and for Entertainment Purposes Only.
      Any gain or loss is your responsibility.
      Use at your own risk.

      Order is a Subset of Chaos
      Knowledge is Beyond Belief
      Wisdom is Not Censored
      Douglas Paul Smallish
      Jehocifer

        Todd's avatar - Cylon 2.gif
        Chief Bottle Washer
        New Jersey
        United States
        Member #1
        May 31, 2000
        23350 Posts
        Online
        Posted: April 13, 2006, 9:19 am - IP Logged

        Please keep us posted on your progress.  Pick 3 seems to work especially well with RGB colors, given that there are three sets of numbers.  Maybe you could use a 4-gidit color representation for Pick 4.  Isn't there one called CMYK or something like that?

         

        Check the State Lottery Report Card
        What grade did your lottery earn?

         

        Sign the Petition for True Lottery Drawings
        Help eliminate computerized drawings!

          JADELottery's avatar - YingYangYong 01.PNG
          The Quantum Master
          West Concord, MN
          United States
          Member #21
          December 7, 2001
          3684 Posts
          Offline
          Posted: April 13, 2006, 9:44 am - IP Logged

          Yes Tood, I have looked at that. I'm actually leaning more towards using the fourth value D as a propagation wave through the color cube along the x,y,z axis.

          Presented 'AS IS' and for Entertainment Purposes Only.
          Any gain or loss is your responsibility.
          Use at your own risk.

          Order is a Subset of Chaos
          Knowledge is Beyond Belief
          Wisdom is Not Censored
          Douglas Paul Smallish
          Jehocifer

            JADELottery's avatar - YingYangYong 01.PNG
            The Quantum Master
            West Concord, MN
            United States
            Member #21
            December 7, 2001
            3684 Posts
            Offline
            Posted: April 13, 2006, 10:17 am - IP Logged

            If you're having a problem getting to the complete PICK 3 data color page on the Yahoo website, you can try this AOL site --->  PICK 3 data color

            This link, however, is only temporary for now.

            Presented 'AS IS' and for Entertainment Purposes Only.
            Any gain or loss is your responsibility.
            Use at your own risk.

            Order is a Subset of Chaos
            Knowledge is Beyond Belief
            Wisdom is Not Censored
            Douglas Paul Smallish
            Jehocifer

              JADELottery's avatar - YingYangYong 01.PNG
              The Quantum Master
              West Concord, MN
              United States
              Member #21
              December 7, 2001
              3684 Posts
              Offline
              Posted: April 27, 2006, 4:08 pm - IP Logged

              I've had a question put to me, "How do you use the color data?"

              Well, I mainly created the color data to visualize where in the 3-dimensional 10x10x10 cube (0-9 x 0-9 x 0-9) the data is occurring.

              Sometimes just looking a numbers can be mind numbing.

              If you look at the total possible permutations of PICK 3 data in color, you can see that the triples are black, gray, and white; corresponding to 0 0 0, 1 1 1 to 8 8 8, and 9 9 9 respectively.

              Colors that are near black, gray, or white are usually 1 away from a triple, like 0 1 1, 7 6 7, 8 8 9, 0 0 1, 1 2 1, and 7 7 6.

              Colors that are fairly vivid have numbers that have 1 number fairly far away from the other 2, like 0 9 9, 3 7 2, 8 7 0, 0 0 7, 1 9 2, 8 2 3.

              There is also a color vector that the numbers can produce when looking at 2 points, like 0 0 0 and 9 9 9; this produces a color vector that completely lies along the gray line from black to white.

              Other color vectors also pass through other colors from the start point to its end point and are potential possible points where the number could have been selected.

              I'm still working on some other theroies related to this topic.

              I've also worked out a PICK 4 color mapping and I am working on a way to present it to you; so you can understand it, but it can get pretty messy when trying to get average persons to visualize 4-dimensional data projection in a 3-dimensional space.

              Presented 'AS IS' and for Entertainment Purposes Only.
              Any gain or loss is your responsibility.
              Use at your own risk.

              Order is a Subset of Chaos
              Knowledge is Beyond Belief
              Wisdom is Not Censored
              Douglas Paul Smallish
              Jehocifer