Welcome Guest
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
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

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)

r_hex = hex(r) , g_hex = hex(g) , b_hex = hex(b)

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.

 Data DEC 0 - 255 Hex 00 - FF Color A B C R G B R G B
 1 1 7 28 28 198 1C 1C C6 7 5 7 198 142 198 C6 8E C6 5 0 7 142 0 198 8E 00 C6 9 4 4 255 113 113 FF 71 71 4 9 5 113 255 142 71 FF 8E 6 3 5 170 85 142 AA 55 8E 0 1 8 0 28 227 00 1C E3 2 1 8 57 28 227 39 1C E3 2 0 2 57 0 57 39 00 39 2 2 6 57 57 170 39 39 AA
 3 7 5 85 198 142 55 C6 8E 5 2 1 142 57 28 8E 39 1C 3 5 0 85 142 0 55 8E 00 6 5 6 170 142 170 AA 8E AA 2 2 0 57 57 0 39 39 00 3 8 2 85 227 57 55 E3 39 7 6 1 198 170 28 C6 AA 1C 9 3 9 255 85 255 FF 55 FF 0 7 5 0 198 142 00 C6 8E 9 1 8 255 28 227 FF 1C E3

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.

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

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

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

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.

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

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

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

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.

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

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.

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

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.