lol that was quick, over nighwork.

Grate work! 🙂 wish i can be good as you one day in PHP, only been doing this 3months its fun.

    It's just not good enough for you, is it!? 😃

    Sliders are cool... but the main reason for creating the app was to use the GD library to create dynamic color maps. I have been thinking about putting together a site that deals with every aspect of color, including picker apps, color theory, and more, and making the True Color Picker just one part of it. Another part could be the slider app, one slider per RGB component.

    If you want to see a really cool color app, check out ColorDabbler over at www.arcticowlsoftware.com. If you're into color, that's the app to have.

    Color Wheel Pro is good, also, if you want a quick and dirty way to view how a website or company letterhead looks with colors you pick. www.color-wheel-pro.com

      Buzz,
      It would be cool if there were a place to type in a color code (hex or decimal) and have the app update everything on the page based on the code typed in. That way if someone has a base color in mind they could use the app for the other stuff it offers without needing to find their base color on the map.

        yeah... good point. You'd think I'd have thought of that, huh?

        Sometimes it's the simple things...

          Originally posted by BuzzLY
          yeah... good point. You'd think I'd have thought of that, huh?

          Sometimes it's the simple things...

          As well as hex code (long and short forms?) or rgb triple, someone might want to try "magenta" or "slateblue".

            Yes, that's probably true. However, any user that doesn't notice the dropdown directly above the text input, where they can choose a color by name, is probably blind, and wouldn't benefit from a color picking application anyway.

            As for the short-hand hex codes, I can easily accomodate that. RGB triples isn't too difficult, either, but dammit, I can't just hand EVERYTHING to the user on a silver platter!

              Originally posted by BuzzLY
              Yes, that's probably true. However, any user that doesn't notice the dropdown directly above the text input, where they can choose a color by name, is probably blind, and wouldn't benefit from a color picking application anyway.

              Why not put a javascript in there that if someone types in a color name (or any character greater then F) it pops up an alert box that just says "Look Up"

                Monitor the contents of the field as they type; make the legend flash (or make a rude noise) if they stray from the expected format(s).

                  Ok, now you're just being spiteful.

                  I take comfort in the knowledge that such suggestions are manifesting. I think I'm done coding this monster 😃

                    Okay then, if it's spite you want...
                    A colour cube. Draw back three faces in full and the mark out the other three in wireframe (all appropriately coloured), and pinpoint the chosen colour in the cube - with axes drawn in to relate the point to the three back faces.

                    Or draw the three orthogonal faces (of which you currently show one) that pass through the selected colour - at right angles to each other (modulo projection into a two-dimensional image).

                      Originally posted by Weedpacket
                      Okay then, if it's spite you want...
                      A colour cube. Draw back three faces in full and the mark out the other three in wireframe (all appropriately coloured), and pinpoint the chosen colour in the cube - with axes drawn in to relate the point to the three back faces.

                      Or draw the three orthogonal faces (of which you currently show one) that pass through the selected colour - at right angles to each other (modulo projection into a two-dimensional image).

                      Actually, you might find it amusing to know I have thought of both, and determined that such a thing, while fun, would be difficult to do in GD. And I am sure you are much better at the math involved than I. It sure would be cool to have the cube, wouldn't it?

                      As for the 3 orthogonal faces -- that is what the Red, Green, and Blue scales are for -- technically, although it's not explained on the page, those are the three "dimensions" of the color cube, and I always paint the orthogonal face of the intersection point where the color resides in the cube. That's why the palette always changes when you choose a different scale value. Perhaps "scale" isn't the word I should have chosen, but there you go.

                        Originally posted by zapa
                        one more 🙂
                        http://www.pixy.cz/apps/barvy/index-en.html

                        Yes, I have seen that page. It's pretty cool. Interestingly, the complements I have chosen are similar to the "contrasts" dropdown. Their contrast is my opposite, soft contrast 30° = triangle, soft contrast 60° = triad, double contrast 60° = rectangle, and double contrast 90° = square.

                        The only difference is that they are using the tradition additive color wheel (all colors = black -- think mixing paints or crayons), whereas I use the subtractive color wheel (all colors = white -- think mixing light waves). Both are legitimate, but I chose the one that pertains to web development, specifically the RGB color combo.

                          Originally posted by BuzzLY
                          The only difference is that they are using the tradition additive color wheel (all colors = black -- think mixing paints or crayons), whereas I use the subtractive color wheel (all colors = white -- think mixing light waves). Both are legitimate, but I chose the one that pertains to web development, specifically the RGB color combo.

                          Are you saying web developers are subtractive?

                            No... but some can be divisive. Not many are multiplicative, though...

                              Originally posted by BuzzLY
                              No... but some can be divisive. Not many are multiplicative, though...

                              my daughter says I'm a minority - does this qualify me for afirmative action?

                                Originally posted by BuzzLY
                                As for the 3 orthogonal faces -- that is what the Red, Green, and Blue scales are for -- technically, although it's not explained on the page, those are the three "dimensions" of the color cube, and I always paint the orthogonal face of the intersection point where the color resides in the cube.

                                Yeah, those are the faces I meant; instead of drawing just the one (and the line of intersection of the other two), draw all three faces mutually intersecting - it's like the cube, only you render those slices, instead of the ones making up the back of the cube. I was thinking draw the parallelograms line-by-line (horizontally or vertically depending on which would be the more accurate - probably whichever gives more but shorter lines) and figuring out the appropriate gradient to draw along the current row or column of pixels (depending on whether you decide to draw them horizontally or vertically, I presume your colour functions include a gradient). There would be twelve pieces to draw: [0,0,0]-[r,g,b], [r,0,0]-[1,g,b], [r,g,b]-[1,1,1] etc. , which you'd draw in order from furthest to nearest

                                Originally posted by BuzzLY
                                The only difference is that they are using the tradition additive color wheel (all colors = black -- think mixing paints or crayons), whereas I use the subtractive color wheel (all colors = white -- think mixing light waves).

                                I think you got that backwards --- additive is adding colours to black (adding light by switching on light sources), subtractive is taking them from white (blocking light with layers of pigment).

                                  Yeah, you're right. I always get those backwards LOL

                                    3 years later

                                    WOW BuzzLY. How did you make that color picker. Even after viewing the code I was still lost. Any pointers on where to find good tutorials to use GD2. I am new to PHP, and I built my first content management system. I need to build a color picker for users or find a good one to use at least for now. Do you have the color picker on a page with ads or something that you would allow me to link to until I can build one of my own? Or does anyone else know of a good one, or a good tutorial for one? The ones im finding that are free and offer the code for use are little java scripts that do not have the bredth and depth that I would like to build and/or use.

                                      Write a Reply...