Author Topic: Colored Pi  (Read 14150 times)

0 Members and 1 Guest are viewing this topic.

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Colored Pi
« on: November 14, 2006, 09:57:29 pm »
This is interesting. "Each of the 10 possible decimals of the number pi is displayed by a distinct colored pixel." The decimal point isn't there in case you feel pointing that out. I was bored in my 5th period so I confirmed most of the first line.



Alternate link:
http://ccgforums.com/miamiandy/color_pi.png
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #1 on: November 14, 2006, 10:21:38 pm »
Interesting idea.  7, 0 and 9 aren't very "distinct," though.  They need more contrasting colors.

Offline d&q

  • Hero Member
  • *****
  • Posts: 1427
  • I'm here.
    • View Profile
    • Site
Re: Colored Pi
« Reply #2 on: November 14, 2006, 10:24:43 pm »
Hm. Try looking for some patterns? Like, color them in one(let's say blue) palette. From a complete white, to all the way through the shades of blue to a black.
The writ of the founders must endure.

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Re: Colored Pi
« Reply #3 on: November 14, 2006, 10:26:30 pm »
I didn't do that myself btw. And once you are zoomed in all the way you can decently tell the color of the pixels apart.
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #4 on: November 14, 2006, 10:38:03 pm »
Hm. Try looking for some patterns? Like, color them in one(let's say blue) palette. From a complete white, to all the way through the shades of blue to a black.

I think it's pretty much confirmed that the digits of pi (in this sort of very small reference frame, anyway!), there are no "patterns."

I didn't do that myself btw. And once you are zoomed in all the way you can decently tell the color of the pixels apart.

I know you didn't. ;P

Zooming in defeats the purpose of the thing!  I think this would be reasonably easy to create, though.  In fact... brb.

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Re: Colored Pi
« Reply #5 on: November 14, 2006, 10:51:19 pm »
Of course it would be easy to create, I could make in in c++. All you need is calculate pi to whatever place you want and then plot it pixel by pixel.
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #6 on: November 14, 2006, 11:13:28 pm »
« Last Edit: November 14, 2006, 11:15:11 pm by Sidoh »

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Re: Colored Pi
« Reply #7 on: November 14, 2006, 11:17:27 pm »
Nice. See, made quickly. 1 hour 15 min after original post. How long did it take you??
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #8 on: November 14, 2006, 11:18:25 pm »
Nice. See, made quickly. 1 hour 15 min after original post. How long did it take you??

About five minutes.  45 lines of code.

Edit: Here's the code.

Edit2:  Fixed the link.  This is the code that produces the ledgend at the top of the image, so it's longer.
« Last Edit: November 20, 2006, 01:45:02 pm by Sidoh »

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Re: Colored Pi
« Reply #9 on: November 14, 2006, 11:34:41 pm »
Nice.
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline d&q

  • Hero Member
  • *****
  • Posts: 1427
  • I'm here.
    • View Profile
    • Site
Re: Colored Pi
« Reply #10 on: November 14, 2006, 11:50:26 pm »
Hm. Try looking for some patterns? Like, color them in one(let's say blue) palette. From a complete white, to all the way through the shades of blue to a black.

I think it's pretty much confirmed that the digits of pi (in this sort of very small reference frame, anyway!), there are no "patterns."

I didn't mean patterns in that sense, I fully understand that pi is irrational and there are no patterns. I meant like, interesting formations. I'm saying it would be more aesthetically pleasing than just a huge Joseph's technicolor dreamcoat.
The writ of the founders must endure.

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #11 on: November 14, 2006, 11:59:13 pm »
I didn't mean patterns in that sense, I fully understand that pi is irrational and there are no patterns. I meant like, interesting formations. I'm saying it would be more aesthetically pleasing than just a huge Joseph's technicolor dreamcoat.

How's this?

Offline Miamiandy

  • Full Member
  • ***
  • Posts: 187
  • SpAm In ThE cAn
    • View Profile
    • MyHouseGeek
Re: Colored Pi
« Reply #12 on: November 15, 2006, 12:04:01 am »
That's a neat way of doing it as well.
Want to meet someone famous?  Cut out this coupon!

 ___________________

|This coupon good for  \
|ONE FREE hunting        \
|expedition with            /
|Dick Cheney.             /

 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Colored Pi
« Reply #13 on: November 15, 2006, 12:08:45 am »
I changed the script so the single digit images are generated differently: white is the presence of the digit, black is the absence.  It's much easier on the eye that way.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Colored Pi
« Reply #14 on: November 15, 2006, 11:22:03 am »
I don't know if you guys knew this, but the formula for pi is .
I'd personally do as Joe suggests

You might be right about that, Joe.