Welcome To Snipplr


Everyone's Recent Snippets Tagged color



« Prev 1 2 3 4
  1. FAV

    How to Add Rectangle or Line Object to An Existing PDF File using .NET

    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...
    C# 4 views posted 3 years ago by sherazam
  2. FAV

    Hexadecimal Color Inverter

    By Matt Lagrandeur
    JavaScript 7 views posted 5 years ago by tionazo
  3. FAV

    Alternating Row Colors

    alternating row color snippet for outputting query results in a html table
    ColdFusion saved by 1 person 6 views posted 5 years ago by dreamstarter
  4. FAV

    Java code for Changing Color Space of PDF Document

    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...
    Java 5 views posted 5 years ago by johansonkatherine
  5. FAV

    Different colors in console string

    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...
    C# 7 views posted 6 years ago by Rick
  6. FAV

    Color Value To Hexadecimal

    A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.
    ActionScript 3 7 views posted 6 years ago by vamapaull
  7. FAV

    Photoshop overlay blending with opacity in PHP

    This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.
    PHP 3 views posted 6 years ago by laurikar
  8. FAV

    CSS3 Link Color Transition Effect

    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/...
    CSS saved by 3 people 7 views posted 7 years ago by bmayzure
  9. FAV

    Using Alternating Background Color with PROC REPORT

    Adding alternating row of color to make proc report output easier to read.
    SAS 4 views posted 7 years ago by webonomic
  10. FAV

    Get the dominant color of any image.

    Point the script to an image and get its dominant color.
    PHP saved by 2 people 7 views posted 7 years ago by o0110o
  11. FAV

    Specify colors in SAS statistical graphics procedures

    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:
    SAS 4 views posted 7 years ago by webonomic
  12. FAV

    CSS - Reset all colors and change link color

    CSS 6 views posted 7 years ago by satie83
  13. FAV

    Hexadecimal color regex match

    Regex code to match hexadecimal colors
    Regular Expression 8 views posted 7 years ago by guilhermehn
  14. FAV

    Random color hex

    Random color hex
    PHP 5 views posted 7 years ago by pruntrut
  15. FAV

    Macro to use HEX color

    OBJC macro to use HEX color values to init UIColor objects
    Objective C 8 views posted 7 years ago by Gretzki
  16. FAV

    change scrollbar color using css

    this code is used to change the scroll bar color change
    CSS 9 views posted 7 years ago by satinfo30
  17. FAV

    python terminal colour printing (termcolor)

    Quick method for creating coloured tty in python terminal using 'termcolor' $ pip install termcolor;
    Python 3 views posted 8 years ago by Glycerine
  18. FAV

    Extract most common colors from an image

    Takes an image (path or url) and extracts the 7 most common colors and returns their hex values.
    Ruby 15 views posted 8 years ago by kellishaver
  19. FAV

    Custom selection color

    <p>Little snippet, which helps to use custom colored selections. All you need is to setup the right style and use this snippet!</p>
    jQuery 4 views posted 8 years ago by schmizpeter
  20. FAV

    get RGBA values as an object

    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:...
    JavaScript 2 views posted 8 years ago by claudiowebdesign
  21. FAV

    php color-scheme viewer

    PHP 5 views posted 8 years ago by DanielFGray
  22. FAV

    CSS minifier and color replaces

    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...
    PHP 6 views posted 8 years ago by FatFolderDesigner
  23. FAV

    Random color generator

    PHP 3 views posted 8 years ago by nogre
  24. FAV

    Make your table color different by Mysql Select tag

    Here you see a example to make your table background color fdifferent at last
    PHP 3 views posted 8 years ago by Darksider3
  25. FAV

    RGB Gradation Chart Generator

    [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...
    Python 4 views posted 8 years ago by magicrebirth
  26. FAV

    RGB Color Gradation Function

    Python 2 views posted 8 years ago by magicrebirth
  27. FAV

    Change Highlight Color Excel 2007

    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.
    Visual Basic 5 views posted 8 years ago by aianrnoens
  28. FAV

    PHP Random Color

    Ported to PHP from here: http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)
    PHP saved by 6 people 4 views posted 8 years ago by ozke
  29. FAV

    AS3 ColorUtil Class (inc. RGBtoCMYK, CMYKtoRGB, subtractive colour & addative colour)

    Full credit for this class goes to Deva Raj (@nsdevaraj). Many thanks.
    ActionScript 3 saved by 2 people 5 views posted 9 years ago by adrianparr
  30. FAV

    AS3 HSB Colour (Object) to RGB Colour (Object)

    ActionScript 3 5 views posted 9 years ago by adrianparr
« Prev 1 2 3 4