Language…
23 users online:  AmperSam, crocodileman94, DanMario24YT, Dennsen86, deported, DixyNL, figuiDOS, Golden Yoshi, Green, Gurjinter, Knetog,  Losoall, Maw, Pink Gold Peach, ppp9q, Serena, Silver_Revolver, test212, The_Uber_Camper,  Thomas, tOaO, VSmario90,  yoshi3706 - Guests: 290 - Bots: 329
Users: 64,795 (2,374 active)
Latest user: mathew

Happy Pi Day Project - Pi Hex Digit Color Finder

Views:
Time:
6 users online: o imamelia, o o FPzero, o bebn legg, o Nameless, o Major Flare, o o Scrydan - Guests: 69 - Bots: 160Users: 69,666 (9,999 active)
Latest: Year 2020
Tip:
Have you ever wanted to truly show your nerd colors? Why not pick a color that truly represents pi day?

Well now you can! Introducing a system that searches up to a million digits of pi. It can search a million digits of decimal or hexadecimal.

You can find colors like the one here.
https://scryforce.com/?p=game&g=pi&s=color_finder&position=42


The share color link updates as you find colors, and will allow you to find interesting colors. You can enter a position of digits to search 6 digits of hex from this page. You an also pick a random range of colors up to near a million (1mil-6).

So with that said, I'd like you to check out some colors and show me some interesting results.

So if you'd like to share colors, screen shot the result and the position used. Something like this would work great.



You can also just search results with that other link to look up to 100k digits per page. So it should be a fun pi filled day. Hope you enjoy!

Edit: I'd love to see staff pick one of these random colors. It'd be nice.

Fun fact, my old user name color (#BF0000) on can be found through this:
https://scryforce.com/?p=game&g=pi&s=color_finder&position=506597

Can you find yours?



Edit 2: Here's the color represented by this thread's ID.
https://scryforce.com/?p=game&g=pi&s=color_finder&position=105505

So this is effectively just a random color finder, using digits of Pi as the pseudo-RNG, right? Well, guess that might be useful when trying to find a random color, lol. Definitely sounds like it made for a fun little side project.

If I may make a minor suggestion: I'd switch the position of the "min" and "max" text boxes. When specifying ranges in software, it's pretty much the norm to have minimum values on the left and maximum values on the right. It's quite unusual and unintuitive to do it the other way around, this definitely threw me off at first. The brain naturally wants to read it as "from [...] to [...]", so it's kinda weird when it says something like "from 100 to 0".

That's really the only issue I see, though. It's definitely a solid implementation for what it is. I like how the text color automatically changes to something that is still readable on whatever background color is being used.
Feel free to visit my website/blog - it's updated rarely, but it looks pretty cool!
Views:
Time:
6 users online: o imamelia, o o FPzero, o bebn legg, o Nameless, o Major Flare, o o Scrydan - Guests: 69 - Bots: 160Users: 69,666 (9,999 active)
Latest: Year 2020
Tip:
Quote
 RPG Hacker:So this is effectively just a random color finder, using digits of Pi as the pseudo-RNG, right? Well, guess that might be useful when trying to find a random color, lol. Definitely sounds like it made for a fun little side project.

Basically it looks up digits of pi converted to hex. I in fact have a billion digits I could allow it to look up, but... that's like a near gig of data (naturally) to look through and a million I thought was more than enough. A full 100k digits is more than pages of scrolling so I thought it was fun to look through and see it as hex for different colors too. Here's a look at some digits.



So if you pick a random number less than 5k, your color is somewhere in there. For me, my name color would be found at 506,597 digits (position). It is quite amazing. While it doesn't contain every name color in a million digits, it does contain quite a few of them.

Quote
If I may make a minor suggestion: I'd switch the position of the "min" and "max" text boxes.

Yes, I was debating doing that...but somewhere forgotten to do so. Now it has been fixed in like 30 seconds. lol

Now if you're curious as to why it was backwards...was because of the actual PHP pi function I made. Much like how you code functions, parameters are often ordered by how often you change them. Like max/min functions, the number function I made is max, min because you change the max more often than min despite how min and max is where you'd place it logically. But this means I can call the function like random::get(69) instead of needing to always specify 0, 69 most of the time as 0 is assumed until I specify I need 1 or some other minimal value.

Now while this order might make sense for code, it makes NO sense for UI elements, and thus it was fixed to be where most people would expect that input elements being ordered. Apologies for any difficulty it has caused.

Quote
That's really the only issue I see, though. It's definitely a solid implementation for what it is. I like how the text color automatically changes to something that is still readable on whatever background color is being used.


Yeah...the logic behind making the text ALWAYS visible was rather tricky. There was several things tried. Initially flipping the text color to be FF0000 if the values were low on the first grouping of 2, but then high on the other two. But then it went to a more fine system, for each hex digit 0-15. Nerd stuff aside, it was an interesting experiment but did cause some hassle as finding a better method would indeed be nice as it isn't completely satisfactory but I do find that after 3 days of work, it turned out alright.

Work started 2 days ago, and most of the work on the function completed right away, but the constant tweaks to make a decent UI took the rest of the time.


I do think I wish to turn this into a game of some sort. You might have noticed this is part of a page called "game". There's lots of games currently under wraps, and many including some playing cards. I have yet to reveal most of what I am working on but I am hoping to reveal it soon.

In the meantime, I hope some of you enjoyed some of the pi fun. I haven't done much relating to pi before, but this has been a fun project and I've certainly learned a lot. ^.=.^


Also side note, I randomly created a base 40 number. It is, well, interesting. This is what happens when a programmer has way too much time on his hand coding so many site related things, including a scheme system I am quite happy about.

This looks super cool if I could use this! Awesome!

And btw, here's mine:
https://scryforce.com/?p=game&g=pi&s=color_finder&position=2424
The Hacking of PuyoPuyo. Come join the fun, friends. 『いけいけ団長、頑張れ頑張れ団長!』
Help us raise funds for the Armed Forces of Ukraine. #ДопомагаємоРазом / #HelpTogether
“Even if you personally are so dissatisfied with life that you want the world to end, surely the cruel reality is that it will continue on, unchanging. All the better for someone perfectly content, like me.”
Aya Shameimaru, Touhou Suzunaan ~ Forbidden Scrollery