Posts

Showing posts with the label Colors

ChartJS. Change Axis Line Color

Answer : you can change the color by scales configuration under chart options: type: '...', data: {...}, options: { scales: { xAxes: [{gridLines: { color: "#131c2b" }}], yAxes: [{gridLines: { color: "#131c2b" }}] } } I know this question was asked over 2 years ago and the OP has already marked a correct answer, but I have a solution to the problem that the OP mentioned in the comments of the marked answer and I'd like to solve it to save other people some time. But this changes the color of the axis and all the gridLines, what if I just want to change the axis color? For example, I want the axis line solid black and the grid lines grey. If you're trying to achieve this, then the marked answer won't do it for you but the following should: yAxes: [{ gridLines: { zeroLineColor: '#ffcc33' } }] In the Charjs.JS to style the scale label and ticks we can u...

Advantages Of "Premier Color" On A Dell 4k Monitor

Answer : What Dell calls "Premier Color" and HP calls "Dreamcolor" is marketing-speak for 10-bits per channel color. They are also pre-calibrated with a selection of color profiles for professional work in (especially) video and television, also applicable to photography and graphic design, which you can find in their specs. You can use the full capabilities of a 10-bit monitor only if you have an OS that supports it and have a professional-grade GPU that will output 10-bit color. There is a good answer here with more details on that topic. Unless you are doing truly color-critical work, the extra color depth and color presets may not be worth the extra cost, but it's worth noting that they can display sRGB, Adobe RGB (almost!), and several television standards, which are not achievable with the usual 8-bit/channel displays. The details are, frankly, highly technical and tl;dr for most purposes. If you Google "10 bit displays" you'll find a...

Change Color Of PNG Image Via CSS?

Answer : You can use filters with -webkit-filter and filter : Filters are relatively new to browsers but supported in over 90% of browsers according to the following CanIUse table: https://caniuse.com/#feat=css-filters You can change an image to grayscale, sepia and lot more (look at the example). So you can now change the color of a PNG file with filters. body { background-color:#03030a; min-width: 800px; min-height: 400px } img { width:20%; float:left; margin:0; } /*Filter styles*/ .saturate { filter: saturate(3); } .grayscale { filter: grayscale(100%); } .contrast { filter: contrast(160%); } .brightness { filter: brightness(0.25); } .blur { filter: blur(3px); } .invert { filter: invert(100%); } .sepia { filter: sepia(100%); } .huerotate { filter: hue-rotate(180deg); } .rss.opacity { filter: opacity(50%); } <!--- img src http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/500px-M...

Change Firefox New Tab Background

Answer : I think this may interest others as well. ANSWER UPDATE (as of 2020) By now there's a lot of cool and interesting addons that do the job in great way, let me mention some of my favorite in a brief list: Firefox Color This imho is really THE DEFINITIVE ONE and A MUST HAVE! Not only it lets you deeply customize almost everything of Firefox GUI the way you like it (including new tabs background of course), it also lets you share the theme you made if you want. If this isn't enough, let me add this addon is develope by Mozilla itself. Tabliss This is a really nice one (I personally use and love it). It lets you customize the new tabs background not only choosing for a color but also beautiful background images and add widgets (like showing the time for instance). (As a last note here let me say Tabliss is like joining the features of New Tab Override, New Tab Wallpaper, Beauty Tab, New Tab Splash and Clock New Tab addons all togheter.) There are also some addons...

Color Theory: How To Convert Munsell HVC To RGB/HSB/HSL

Image
Answer : It is rather involved. The short answer is, converting Munsell codes into RGB involves interpolation of empirical data in 3D that is highly non-linear. The only data set that is publicly available was collected in the 1930's. Free or inexpensive programs that I have found on the net have proved to be flawed. I wrote my own. But I am jumping ahead. Let's start with the basics. Munsell codes are different in kind than those other codes, xyY, Lab, and RGB. Munsell notation describes the color of an object - what people experience when they view the object. (Isaac Newton was the first to realize that color is in the eye of the beholder.) Munsell conducted extensive experiments with human subjects and ingenious devices. The other codes, i.e. xyY, L a b*, and RGB, describe light that has bounced off an object and passed through a convolultion with a rather simple mathematical model of a human eye. Some google-terms are "illuminant," "tri-stimulus,...

Algorithm To Randomly Generate An Aesthetically-pleasing Color Palette

Image
Answer : You could average the RGB values of random colors with those of a constant color: (example in Java) public Color generateRandomColor(Color mix) { Random random = new Random(); int red = random.nextInt(256); int green = random.nextInt(256); int blue = random.nextInt(256); // mix the color if (mix != null) { red = (red + mix.getRed()) / 2; green = (green + mix.getGreen()) / 2; blue = (blue + mix.getBlue()) / 2; } Color color = new Color(red, green, blue); return color; } Mixing random colors with white (255, 255, 255) creates neutral pastels by increasing the lightness while keeping the hue of the original color. These randomly generated pastels usually go well together, especially in large numbers. Here are some pastel colors generated using the above method: You could also mix the random color with a constant pastel, which results in a tinted set of neutral colors. For example, using a light blue cr...

Can A Printer Print White Color?

Answer : You will not get anything on the paper with a basic CMYK inkjet or laser printer. The CMYK color mixing is subtractive , meaning that it requires the base that is being colored to have all colors (i.e., White ) So that it can create color variation through subtraction: White - Cyan - Yellow = Green White - Yellow - Magenta = Red White - Cyan - Magenta = Blue White is represented as 0 cyan, 0 yellow, 0 magenta, and 0 black - effectively, 0 ink for a printer that simply has those four cartridges. This works great when you have white media, as "printing no ink" simply leaves the white exposed, but as you can imagine, this doesn't work for non-white media. If you don't have a base color to subtract from (i.e., Black ), then it doesn't matter what you subtract from it, you still have the color Black. As others are pointing out, there are special printers which can operate in the CMYW color space, or otherwise have a white ink or toner. These can ...

Can We Use More Colors In Batch Script?

Image
Answer : Can I use more the 16 colours in a Windows batch file? No, as most most Windows apps only support 16 colours. However, in the Windows 10 Insiders Build #14931 the Windows Console was updated to support 24-bit RGB true color. Unfortunately as mentioned above most Windows apps cannot make use of this enhancement (yet). However, using Windows Subsystem for Linux (WSL), Linux scripts and tools can use the Console's new 24-bit color support: One of the most frequent requests we receive is to increase the number of colors that the Windows Console can support. We love nothing more than to deliver features you ask for! But rather than just add a few more colors, or limit our console to a mere 256 colors, in Windows 10 Insiders Build #14931, we’ve updated the Windows Console to support full, glorious 24-bit RGB true color! This is actually a little tricky to demo since most Windows apps only support 16 colors at most whereas the Linux world has broadly supported 256 col...

An Application To Easily Pick A Color In Mac OS X And Get The Hex Value

Image
Answer : OS X comes with DigitalColor Meter: Applications > Utilities > DigitalColor Meter.app It has many options and preferences. command+shift+c will copy the color under the cursor to the clipboard in many different formats. The Mac OS X color picker is extensible. Use Hex Color Picker to add a tab that provides you the configured color in hexadecimal RGB. Just run e.g. TextEdit and press Cmd-Shift-C to open the color picker, or run your standalone program. An even more versatile color picker is Developer Color Picker with many different output formats, one of which is hexadecimal. This is easily done with AppleScript. A complete working example of code is available here.