Welcome To Snipplr
Everyone's Recent Snippets Tagged color
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
0
1949
posted 8 years ago by sherazam
alternating row color snippet for outputting query results in a html table
1
1022
posted 10 years ago by dreamstarter
This code shows how java developers can change color space of PDF document from RGB color to CMYK and vice versa by using Aspose.PDF for Java Library. The following methods have been implemented in the Operator class for changing colors. Use it to ch...
0
1884
posted 10 years ago by johansonkatherine
This is way to get different fg and bg colors inside 1 string. You provide escape like characters to define colors.
This is a fg of #rRed #xand now we're back to normal.
This is a bg of $bBlue#x and now we're back to normal.
I can combine fg & b...
0
1016
posted 11 years ago by Rick
A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.
0
1106
posted 11 years ago by vamapaull
This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.
0
766
posted 11 years ago by laurikar
A simple CSS3 link-color transition effect. Fades from the base color to the active/focus color and back on rollover. A nice little added effect that's pretty well cross browser. Works with Webkit (Chrome/Safari/etc), Opera, Gecko (Firefox/Seamonkey/...
1
1004
posted 11 years ago by bmayzure
Adding alternating row of color to make proc report output easier to read.
0
1184
posted 12 years ago by webonomic
If you want to see some of the color names that SAS recognizes, run the following statements, which will print a list of colors to the SAS log:
0
937
posted 12 years ago by webonomic
Quick method for creating coloured tty in python terminal using 'termcolor'
$ pip install termcolor;
0
827
posted 12 years ago by Glycerine
Takes an image (path or url) and extracts the 7 most common colors and returns their hex values.
0
1091
posted 12 years ago by kellishaver
<p>Little snippet, which helps to use custom colored selections.
All you need is to setup the right style and use this snippet!</p>
0
676
posted 12 years ago by schmizpeter
this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:...
0
1950
posted 13 years ago by claudiowebdesign
With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable t...
0
834
posted 13 years ago by FatFolderDesigner
Here you see a example to make your table background color fdifferent at last
0
953
posted 13 years ago by Darksider3
[from the author's website]
I wrote this to better understand the relationship between RGB colors. Running it will generate a fairly large HTML file with all sorts of color transitions on it so you can see what is happening as colors are tweaked in...
0
858
posted 13 years ago by magicrebirth
Use this code to change the default highlight color for a cell in excel 2007. Right click on the sheet name and click view code, Paste this code into the module that comes up.
0
823
posted 13 years ago by aianrnoens
Ported to PHP from here:
http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)
2
1024
posted 13 years ago by ozke
ActionScript 3
AS3 ColorUtil Class (inc. RGBtoCMYK, CMYKtoRGB, subtractive colour & addative colour)
Full credit for this class goes to Deva Raj (@nsdevaraj). Many thanks.
1
1037
posted 13 years ago by adrianparr