html color code
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 7547

Html Code Convert 3.3
Speed up the conversion of HTML code into different format more>>
HTML Code Convert helps speed up the conversion of HTML code into different format including Java Script, JavaServer Pages, Microsoft ASP, PHP, Perl, Python, and the UNIX Shell. It is particularly useful in CGI scripting.
Enhancements:
- Colors and font selected in prefeferences box.
- Fixe bug with Quit button. First try to support accessibility.
- Updated schemas.
<<lessEnhancements:
- Colors and font selected in prefeferences box.
- Fixe bug with Quit button. First try to support accessibility.
- Updated schemas.
Download (184KB)
Added: 2009-04-29 License: Freeware Price:
198 downloads
Folder Color Icon Set 1.0
Folder Color icon set is a must-have for any computer user who has lots of folders and would like to organize them for faster search and quick retrieval. These 36 color coded folder icons is the way to tackle the too-many-same-looking-folders problem. To change color of a folder: Right click the folder > select Properties > click Customize tab > click Change Icon... > select an icon from this icon set > click OK > click Apply > OK... more>> <<less
Download (446.2Kb)
Added: 2007-07-15 License: Free Price: Free
12 downloads
Resistor Color Code Calculator 1.0
Resistor Color Code Calculator calculates the value of a resistor (an electronic component). more>>
Resistor Color Code Calculator project calculates the value of a resistor (an electronic component).
The colors on the resistor are input into the program, and the result displays the resistance value of the resistor.
This is much easier than memorizing rhymes to remember colors.
<<lessThe colors on the resistor are input into the program, and the result displays the resistance value of the resistor.
This is much easier than memorizing rhymes to remember colors.
Download (0.87MB)
Added: 2006-06-09 License: Free for non-commercial use Price:
1256 downloads
HTML Tidy
HTML Tidy cleans up HTML source and formats it nicely. more>>
HTML TIDY is a free utility to fix mistakes made while editing HTML and to automatically tidy up sloppy editing into nicely layed out markup. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
When editing HTML its easy to make mistakes. Wouldnt it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggetts HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
Tidy is able to fix up a wide range of problems and to bring to your attention things that you need to work on yourself. Each item found is listed with the line number and column so that you can see where the problem lies in your markup. Tidy wont generate a cleaned up version when there are problems that it cant be sure of how to handle. These are logged as "errors" rather than "warnings".
Dave Raggett has now passed the baton for maintaining Tidy to a group of volunteers working together as part of the open source community at Source Forge. The source code continues to be available under an open source license, and you are encouraged to pass on bug reports and enhancement requests at http://tidy.sourceforge.net.
If you find HTML Tidy useful and you would like to say thanks, then please send me a (paper) postcard or other souvenir from the area in which you live along with a few words on what you are using Tidy for. It will be fun to map out where Tidy users are to be found! My postal address is given at the end of this file.
The W3C public email list devoted to HTML Tidy is: . To subscribe send an email to html-tidy-request@w3.org with the word subscribe in the subject line (include the word unsubscribe if you want to unsubscribe). The archive for this list is accessible online. If you would like to contact the developers, or you just want to submit an enhancement request or a bug report, please visit http://tidy.sourceforge.net.
Tidy can now perform wonders on HTML saved from Microsoft Word 2000! Word bulks out HTML files with stuff for round-tripping presentation between HTML and Word. If you are more concerned about using HTML on the Web, check out Tidys "Word-2000" config option! Of course Tidy does a good job on Word97 files as well!
Main features:
- Missing or mismatched end tags are detected and corrected
- End tags in the wrong order are corrected
- Fixes problems with heading emphasis
- Recovers from mixed up tags
- Getting the
in the right place
- Adding the missing "/" in end tags for anchors
- Perfecting lists by putting in tags missed out
- Missing quotes around attribute values are added
- Unknown/Proprietary attributes are reported
- Proprietary elements are recognized and reported as such
- Tags lacking a terminating > are spotted
<<lessWhen editing HTML its easy to make mistakes. Wouldnt it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggetts HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
Tidy is able to fix up a wide range of problems and to bring to your attention things that you need to work on yourself. Each item found is listed with the line number and column so that you can see where the problem lies in your markup. Tidy wont generate a cleaned up version when there are problems that it cant be sure of how to handle. These are logged as "errors" rather than "warnings".
Dave Raggett has now passed the baton for maintaining Tidy to a group of volunteers working together as part of the open source community at Source Forge. The source code continues to be available under an open source license, and you are encouraged to pass on bug reports and enhancement requests at http://tidy.sourceforge.net.
If you find HTML Tidy useful and you would like to say thanks, then please send me a (paper) postcard or other souvenir from the area in which you live along with a few words on what you are using Tidy for. It will be fun to map out where Tidy users are to be found! My postal address is given at the end of this file.
The W3C public email list devoted to HTML Tidy is: . To subscribe send an email to html-tidy-request@w3.org with the word subscribe in the subject line (include the word unsubscribe if you want to unsubscribe). The archive for this list is accessible online. If you would like to contact the developers, or you just want to submit an enhancement request or a bug report, please visit http://tidy.sourceforge.net.
Tidy can now perform wonders on HTML saved from Microsoft Word 2000! Word bulks out HTML files with stuff for round-tripping presentation between HTML and Word. If you are more concerned about using HTML on the Web, check out Tidys "Word-2000" config option! Of course Tidy does a good job on Word97 files as well!
Main features:
- Missing or mismatched end tags are detected and corrected
- End tags in the wrong order are corrected
- Fixes problems with heading emphasis
- Recovers from mixed up tags
- Getting the
in the right place
- Adding the missing "/" in end tags for anchors
- Perfecting lists by putting in tags missed out
- Missing quotes around attribute values are added
- Unknown/Proprietary attributes are reported
- Proprietary elements are recognized and reported as such
- Tags lacking a terminating > are spotted
Download (0.22MB)
Added: 2005-05-05 License: MIT/X Consortium License Price:
2216 downloads
text-vimcolor 0.11
text-vimcolor is a command-line program to syntax color a file in HTML, XML or PDF. more>>
text-vimcolor is a command-line program to syntax color a file in HTML, XML or PDF.
SYNOPSIS
$ text-vimcolor --format html --full-page FILENAME > OUTPUT.html
$ text-vimcolor --format xml FILENAME > OUTPUT.xml
$ text-vimcolor --format pdf FILENAME --output OUTPUT.pdf
This program uses the Vim text editor to highlight text according to its syntax, and turn the highlighting into HTML, XML or PDF output. It works with any file type which Vim itself can highlight. Usually Vim will be able to autodetect the file format based on the filename (and sometimes the contents of the file).
Exactly one filename should be given on the command line to name the input file. If none is given input will instead be read from stdin (the standard input).
If Vim cant guess the file type automatically, it can be specified explicitly using the --filetype option. For example:
$ text-vimcolor --format html --filetype prolog foo.pl > foo.html
This program is a command line interface to the Perl module Text::VimColor.
OPTIONS
The following options are understood:
--help
Show a summary of the usage, including a list of options.
--debug
Turns on debugging in the underlying Perl module. This makes it print the command used to run Vim.
--filetype file-type
Set the type of the file explicitly. The file-type argument should be something which Vim will recognise when set with its filetype option. Examples are perl, cpp (for C++) and sh (for Unix shell scripts). These names are case sensitive, and should usually be all-lowercase.
--format output-format
The output format to generate. Must be one of the following:
html
Generate XHTML output, with text marked with elements with class attributes. A CSS stylesheet should be used to define the coloring, etc., for the output. See the --full-page option below.
xml
Output is in a simple XML vocabulary. This can then be used by other software to do further transformations (e.g., using XSLT).
pdf
XML output is generated and fed to the FOP XSL-FO processor, with an appropriate XSL style sheet. The stylesheet uses XSLT to transform the normal XML output into XSL-FO, which is then rendered to PDF. For this to work, the command fop must be available. An output file must be specified with --output with this format.
Full details of the HTML and XML output formats can be found in the documentation for Text::VimColor.
--output output-filename
Specifies the name of the output file (which will end up containing either HTML, XML or PDF). If this option is omitted, the output will be sent to stdout (the standard output). This option is required when the output format is PDF (because of limitations in FOP).
--full-page
When the output format is HTML, this option will make the output a complete HTML page, rather than just a fragment of HTML. A CSS stylesheet will be inserted inline into the output, so the output will be useable as it is.
--no-inline-stylesheet
When the output format is HTML and --fullpage is given, a stylesheet is normally inserted in-line in the output file. If this option is given it will instead be referenced with a element.
--let name=value
When Vim is run the value of name will be set to value using Vims let command. More than one of these options can be set. The value is not quoted or escaped in any way, so it can be an expression. These settings take precedence over --unlet options.
This option corresponds to the vim_let setting and method in the Perl module.
--unlet name
Prevent the value of name being set with Vims let command. This can be used to turn off default settings.
This option corresponds to the vim_let setting and method in the Perl module, when used with a value of undef.
<<lessSYNOPSIS
$ text-vimcolor --format html --full-page FILENAME > OUTPUT.html
$ text-vimcolor --format xml FILENAME > OUTPUT.xml
$ text-vimcolor --format pdf FILENAME --output OUTPUT.pdf
This program uses the Vim text editor to highlight text according to its syntax, and turn the highlighting into HTML, XML or PDF output. It works with any file type which Vim itself can highlight. Usually Vim will be able to autodetect the file format based on the filename (and sometimes the contents of the file).
Exactly one filename should be given on the command line to name the input file. If none is given input will instead be read from stdin (the standard input).
If Vim cant guess the file type automatically, it can be specified explicitly using the --filetype option. For example:
$ text-vimcolor --format html --filetype prolog foo.pl > foo.html
This program is a command line interface to the Perl module Text::VimColor.
OPTIONS
The following options are understood:
--help
Show a summary of the usage, including a list of options.
--debug
Turns on debugging in the underlying Perl module. This makes it print the command used to run Vim.
--filetype file-type
Set the type of the file explicitly. The file-type argument should be something which Vim will recognise when set with its filetype option. Examples are perl, cpp (for C++) and sh (for Unix shell scripts). These names are case sensitive, and should usually be all-lowercase.
--format output-format
The output format to generate. Must be one of the following:
html
Generate XHTML output, with text marked with elements with class attributes. A CSS stylesheet should be used to define the coloring, etc., for the output. See the --full-page option below.
xml
Output is in a simple XML vocabulary. This can then be used by other software to do further transformations (e.g., using XSLT).
XML output is generated and fed to the FOP XSL-FO processor, with an appropriate XSL style sheet. The stylesheet uses XSLT to transform the normal XML output into XSL-FO, which is then rendered to PDF. For this to work, the command fop must be available. An output file must be specified with --output with this format.
Full details of the HTML and XML output formats can be found in the documentation for Text::VimColor.
--output output-filename
Specifies the name of the output file (which will end up containing either HTML, XML or PDF). If this option is omitted, the output will be sent to stdout (the standard output). This option is required when the output format is PDF (because of limitations in FOP).
--full-page
When the output format is HTML, this option will make the output a complete HTML page, rather than just a fragment of HTML. A CSS stylesheet will be inserted inline into the output, so the output will be useable as it is.
--no-inline-stylesheet
When the output format is HTML and --fullpage is given, a stylesheet is normally inserted in-line in the output file. If this option is given it will instead be referenced with a element.
--let name=value
When Vim is run the value of name will be set to value using Vims let command. More than one of these options can be set. The value is not quoted or escaped in any way, so it can be an expression. These settings take precedence over --unlet options.
This option corresponds to the vim_let setting and method in the Perl module.
--unlet name
Prevent the value of name being set with Vims let command. This can be used to turn off default settings.
This option corresponds to the vim_let setting and method in the Perl module, when used with a value of undef.
Download (0.020MB)
Added: 2007-05-31 License: Perl Artistic License Price:
876 downloads
HTML Sucks Completely 1.0b
HTML Sucks Completely is a developer tool for HTML projects. more>>
HTML Sucks Completely is a developer tool for HTML projects. HTML Sucks Completely is mainly intended for creating and maintaining larger Web sites, with a focus on compact and standards-conforming code.
Its source texts are HTML files that use an extended syntax allowing for macros, conditionals, variables, expressions, etc. These sources are transformed into static (X)HTML pages. HSC checks the result for many common errors such as missing end tags and nesting mistakes, both in the markup and, to a limited extent, in CSS.
As a commandline tool, it can be used together with "make", and a dependency generator is included. The macro library features things like navigation menus, LaTeX-style sections, footnotes and bibliographies, semiautomatic table-based layout, and database/scripting interfaces.
Enhancements:
- Various compilation problems on the Win32 platform were fixed, and the build environment was changed to MinGW.
- Current Win32 binaries are available from the homepage again.
<<lessIts source texts are HTML files that use an extended syntax allowing for macros, conditionals, variables, expressions, etc. These sources are transformed into static (X)HTML pages. HSC checks the result for many common errors such as missing end tags and nesting mistakes, both in the markup and, to a limited extent, in CSS.
As a commandline tool, it can be used together with "make", and a dependency generator is included. The macro library features things like navigation menus, LaTeX-style sections, footnotes and bibliographies, semiautomatic table-based layout, and database/scripting interfaces.
Enhancements:
- Various compilation problems on the Win32 platform were fixed, and the build environment was changed to MinGW.
- Current Win32 binaries are available from the homepage again.
Download (0.60MB)
Added: 2006-04-11 License: GPL (GNU General Public License) Price:
1291 downloads
Text::VimColor 0.11
Text::VimColor is a syntax color text in HTML or XML using Vim. more>>
Text::VimColor is a syntax color text in HTML or XML using Vim.
SYNOPSIS
use Text::VimColor;
my $syntax = Text::VimColor->new(
file => $0,
filetype => perl,
);
print $syntax->html;
print $syntax->xml;
This module tries to markup text files according to their syntax. It can be used to produce web pages with pretty-printed colourful source code samples. It can produce output in the following formats:
HTML
Valid XHTML 1.0, with the exact colouring and style left to a CSS stylesheet
XML
Pieces of text are marked with XML elements in a simple vocabulary, which can be converted to other formats, for example, using XSLT
Perl array
A simple Perl data structure, so that Perl code can be used to turn it into whatever is needed
This module works by running the Vim text editor and getting it to apply its excellent syntax highlighting (aka font-locking) to an input file, and mark pieces of text according to whether it thinks they are comments, keywords, strings, etc. The Perl code then reads back this markup and converts it to the desired output format.
This is an object-oriented module. To use it, create an object with the new function (as shown above in the SYNOPSIS) and then call methods to get the markup out.
<<lessSYNOPSIS
use Text::VimColor;
my $syntax = Text::VimColor->new(
file => $0,
filetype => perl,
);
print $syntax->html;
print $syntax->xml;
This module tries to markup text files according to their syntax. It can be used to produce web pages with pretty-printed colourful source code samples. It can produce output in the following formats:
HTML
Valid XHTML 1.0, with the exact colouring and style left to a CSS stylesheet
XML
Pieces of text are marked with XML elements in a simple vocabulary, which can be converted to other formats, for example, using XSLT
Perl array
A simple Perl data structure, so that Perl code can be used to turn it into whatever is needed
This module works by running the Vim text editor and getting it to apply its excellent syntax highlighting (aka font-locking) to an input file, and mark pieces of text according to whether it thinks they are comments, keywords, strings, etc. The Perl code then reads back this markup and converts it to the desired output format.
This is an object-oriented module. To use it, create an object with the new function (as shown above in the SYNOPSIS) and then call methods to get the markup out.
Download (0.020MB)
Added: 2006-09-12 License: Perl Artistic License Price:
1137 downloads
HTML::Clean 0.8
HTML::Clean module cleans up HTML code for web browsers, not humans. more>>
HTML::Clean module cleans up HTML code for web browsers, not humans.
SYNOPSIS
use HTML::Clean;
$h = new HTML::Clean($filename); # or..
$h = new HTML::Clean($htmlcode);
$h->compat();
$h->strip();
$data = $h->data();
print $$data;
The HTML::Clean module encapsulates a number of common techniques for minimizing the size of HTML files. You can typically save between 10% and 50% of the size of a HTML file using these methods. It provides the following features:
Remove unneeded whitespace (begining of line, etc)
Remove unneeded META elements.
Remove HTML comments (except for styles, javascript and SSI)
Replace tags with equivilant shorter tags (< strong > --> < b >)
etc.
The entire proces is configurable, so you can pick and choose what you want to clean.
<<lessSYNOPSIS
use HTML::Clean;
$h = new HTML::Clean($filename); # or..
$h = new HTML::Clean($htmlcode);
$h->compat();
$h->strip();
$data = $h->data();
print $$data;
The HTML::Clean module encapsulates a number of common techniques for minimizing the size of HTML files. You can typically save between 10% and 50% of the size of a HTML file using these methods. It provides the following features:
Remove unneeded whitespace (begining of line, etc)
Remove unneeded META elements.
Remove HTML comments (except for styles, javascript and SSI)
Replace tags with equivilant shorter tags (< strong > --> < b >)
etc.
The entire proces is configurable, so you can pick and choose what you want to clean.
Download (0.047MB)
Added: 2007-08-07 License: Perl Artistic License Price:
808 downloads
Color::Fade 0.01
Color::Fade provides a Perl extension for fading text colors. more>>
Color::Fade provides a Perl extension for fading text colors.
Color::Fade uses mathematical formulas to take an input string of virtually any length, and virtually any number of colors, and assign an individual color to each character to fade between each of the input colors.
In other words, it makes your sentences look really pretty.
Methods
Fade $string among the colors in @colors, where $string is a string of length greater than zero, and @colors is an array of colors in six byte hexadecimal format, with or without the leading octothorpe. @colors must have at least two elements.
When called in array context, the method returns an array in which each element is of the format:
y
For each character, where xxxxxx is a hexadecimal color code and y is one character from the original string.
When called in scalar context, this array is joined before being returned.
<<lessColor::Fade uses mathematical formulas to take an input string of virtually any length, and virtually any number of colors, and assign an individual color to each character to fade between each of the input colors.
In other words, it makes your sentences look really pretty.
Methods
Fade $string among the colors in @colors, where $string is a string of length greater than zero, and @colors is an array of colors in six byte hexadecimal format, with or without the leading octothorpe. @colors must have at least two elements.
When called in array context, the method returns an array in which each element is of the format:
y
For each character, where xxxxxx is a hexadecimal color code and y is one character from the original string.
When called in scalar context, this array is joined before being returned.
Download (0.006MB)
Added: 2007-03-29 License: Perl Artistic License Price:
939 downloads
Color Label 0.3.5
Color Label is a service menu for KDE based on Color Folder 0.3.4 by HessiJames. more>>
Color Label is a service menu for KDE based on Color Folder 0.3.4 by HessiJames.
HowTo:
Extract all files and
copy colorlabel into /usr/bin/...
perhaps you need to make it executable chmod 755 /usr/bin/colorlabel
copy colorlabel.desktop to /home/~/.kde/share/apps/konqueror/servicemenus/colorlabel.desktop
<<lessHowTo:
Extract all files and
copy colorlabel into /usr/bin/...
perhaps you need to make it executable chmod 755 /usr/bin/colorlabel
copy colorlabel.desktop to /home/~/.kde/share/apps/konqueror/servicemenus/colorlabel.desktop
Download (0.003MB)
Added: 2007-08-07 License: GPL (GNU General Public License) Price:
505 downloads
HTML::Manipulator 0.07
HTML::Manipulator is a Perl extension for manipulating HTML files. more>>
HTML::Manipulator is a Perl extension for manipulating HTML files.
SYNOPSIS
use HTML::Manipulator;
my $html = {
_content => Slashdot,
href=>http://www.slashdot.org/ }
);
# extract a tag content
my $content = HTML::Manipulator::extract_content($html, link);
# extract a tag content and attributes
my $tag = HTML::Manipulator::extract($html, link);
# returns a hash ref like
# { href => http://www.google.com, id => link, _content => Google }
This module manipulates of the contents of HTML files. It can query and replace the content or attributes of any HTML tag.
The advertised usage pattern is to update static HTML files.
<<lessSYNOPSIS
use HTML::Manipulator;
my $html = {
_content => Slashdot,
href=>http://www.slashdot.org/ }
);
# extract a tag content
my $content = HTML::Manipulator::extract_content($html, link);
# extract a tag content and attributes
my $tag = HTML::Manipulator::extract($html, link);
# returns a hash ref like
# { href => http://www.google.com, id => link, _content => Google }
This module manipulates of the contents of HTML files. It can query and replace the content or attributes of any HTML tag.
The advertised usage pattern is to update static HTML files.
Download (0.012MB)
Added: 2006-12-05 License: Perl Artistic License Price:
1054 downloads
Imager::Color 0.54
Imager::Color is a Perl module with color handling for Imager. more>>
Imager::Color is a Perl module with color handling for Imager.
SYNOPSIS
$color = Imager::Color->new($red, $green, $blue);
$color = Imager::Color->new($red, $green, $blue, $alpha);
$color = Imager::Color->new("#C0C0FF"); # html color specification
$color->set($red, $green, $blue);
$color->set($red, $green, $blue, $alpha);
$color->set("#C0C0FF"); # html color specification
($red, $green, $blue, $alpha) = $color->rgba();
@hsv = $color->hsv(); # not implemented but proposed
$color->info();
if ($color->equals(other=>$other_color)) {
...
}
This module handles creating color objects used by imager. The idea is that in the future this module will be able to handle colorspace calculations as well.
new
This creates a color object to pass to functions that need a color argument.
set
This changes an already defined color. Note that this does not affect any places where the color has been used previously.
rgba
This returns the rgba code of the color the object contains.
info
Calling info merely dumps the relevant colorcode to the log.
equals(other=>$other_color)
equals(other=>$other_color, ignore_alpha=>1)
Compares $self and color $other_color returning true if the color components are the same.
Compares all four channels unless ignore_alpha is set. If ignore_alpha is set only the first three channels are compared.
You can specify colors in several different ways, you can just supply simple values:
simple numeric parameters - if you supply 3 or 4 numeric arguments, you get a color made up of those RGB (and possibly A) components.
a six hex digit web color, either RRGGBB or #RRGGBB
an eight hex digit web color, either RRGGBBAA or #RRGGBBAA.
a 3 hex digit web color, #RGB - a value of F becomes 255.
a color name, from whichever of the gimp Named_Colors file or X rgb.txt is found first. The same as using the name keyword.
You can supply named parameters:
red, green and blue, optionally shortened to r, g and b. The color components in the range 0 to 255.
# all of the following are equivalent
my $c1 = Imager::Color->new(red=>100, blue=>255, green=>0);
my $c2 = Imager::Color->new(r=>100, b=>255, g=>0);
my $c3 = Imager::Color->new(r=>100, blue=>255, g=>0);
hue, saturation and value, optionally shortened to h, s and v, to specify a HSV color. 0 new(hue=>120, value=>1, saturation=>0.5);
web, which can specify a 6 or 3 hex digit web color, in any of the forms #RRGGBB, #RGB, RRGGBB or RGB.
my $c1 = Imager::Color->new(web=>#FFC0C0); # pale red
gray or grey which specifies a single channel, from 0 to 255.
# exactly the same
my $c1 = Imager::Color->new(gray=>128);
my $c1 = Imager::Color->new(grey=>128);
rgb which takes a 3 member arrayref, containing each of the red, green and blue values.
# the same
my $c1 = Imager::Color->new(rgb=>[255, 100, 0]);
my $c1 = Imager::Color->new(r=>255, g=>100, b=>0);
hsv which takes a 3 member arrayref, containting each of hue, saturation and value.
# the same
my $c1 = Imager::Color->new(hsv=>[120, 0.5, 1]);
my $c1 = Imager::Color->new(hue=>120, v=>1, s=>0.5);
gimp which specifies a color from a GIMP palette file. You can specify the filename of the palette file with the palette parameter, or let Imager::Color look in various places, typically "$HOME/gimp-1.x/palettes/Named_Colors" with and without the version number, and in /usr/share/gimp/palettes/. The palette file must have color names.
my $c1 = Imager::Color->new(gimp=>snow);
my $c1 = Imager::Color->new(gimp=>snow, palette=>testimg/test_gimp_pal);
xname which specifies a color from an X11 rgb.txt file. You can specify the filename of the rgb.txt file with the palette parameter, or let Imager::Color look in various places, typically /usr/lib/X11/rgb.txt.
my $c1 = Imager::Color->new(xname=>blue) # usually RGB(0, 0, 255)
builtin which specifies a color from the built-in color table in Imager::Color::Table. The colors in this module are the same as the default X11 rgb.txt file.
my $c1 = Imager::Color->new(builtin=>black) # always RGB(0, 0, 0)
name which specifies a name from either a GIMP palette, an X rgb.txt file or the built-in color table, whichever is found first.
channel0, channel1, etc, each of which specifies a single channel. These can be abbreviated to c0, c1 etc.
channels which takes an arrayref of the channel values.
Optionally you can add an alpha channel to a color with the alpha or a parameter.
These color specifications can be used for both constructing new colors with the new() method and modifying existing colors with the set() method.
<<lessSYNOPSIS
$color = Imager::Color->new($red, $green, $blue);
$color = Imager::Color->new($red, $green, $blue, $alpha);
$color = Imager::Color->new("#C0C0FF"); # html color specification
$color->set($red, $green, $blue);
$color->set($red, $green, $blue, $alpha);
$color->set("#C0C0FF"); # html color specification
($red, $green, $blue, $alpha) = $color->rgba();
@hsv = $color->hsv(); # not implemented but proposed
$color->info();
if ($color->equals(other=>$other_color)) {
...
}
This module handles creating color objects used by imager. The idea is that in the future this module will be able to handle colorspace calculations as well.
new
This creates a color object to pass to functions that need a color argument.
set
This changes an already defined color. Note that this does not affect any places where the color has been used previously.
rgba
This returns the rgba code of the color the object contains.
info
Calling info merely dumps the relevant colorcode to the log.
equals(other=>$other_color)
equals(other=>$other_color, ignore_alpha=>1)
Compares $self and color $other_color returning true if the color components are the same.
Compares all four channels unless ignore_alpha is set. If ignore_alpha is set only the first three channels are compared.
You can specify colors in several different ways, you can just supply simple values:
simple numeric parameters - if you supply 3 or 4 numeric arguments, you get a color made up of those RGB (and possibly A) components.
a six hex digit web color, either RRGGBB or #RRGGBB
an eight hex digit web color, either RRGGBBAA or #RRGGBBAA.
a 3 hex digit web color, #RGB - a value of F becomes 255.
a color name, from whichever of the gimp Named_Colors file or X rgb.txt is found first. The same as using the name keyword.
You can supply named parameters:
red, green and blue, optionally shortened to r, g and b. The color components in the range 0 to 255.
# all of the following are equivalent
my $c1 = Imager::Color->new(red=>100, blue=>255, green=>0);
my $c2 = Imager::Color->new(r=>100, b=>255, g=>0);
my $c3 = Imager::Color->new(r=>100, blue=>255, g=>0);
hue, saturation and value, optionally shortened to h, s and v, to specify a HSV color. 0 new(hue=>120, value=>1, saturation=>0.5);
web, which can specify a 6 or 3 hex digit web color, in any of the forms #RRGGBB, #RGB, RRGGBB or RGB.
my $c1 = Imager::Color->new(web=>#FFC0C0); # pale red
gray or grey which specifies a single channel, from 0 to 255.
# exactly the same
my $c1 = Imager::Color->new(gray=>128);
my $c1 = Imager::Color->new(grey=>128);
rgb which takes a 3 member arrayref, containing each of the red, green and blue values.
# the same
my $c1 = Imager::Color->new(rgb=>[255, 100, 0]);
my $c1 = Imager::Color->new(r=>255, g=>100, b=>0);
hsv which takes a 3 member arrayref, containting each of hue, saturation and value.
# the same
my $c1 = Imager::Color->new(hsv=>[120, 0.5, 1]);
my $c1 = Imager::Color->new(hue=>120, v=>1, s=>0.5);
gimp which specifies a color from a GIMP palette file. You can specify the filename of the palette file with the palette parameter, or let Imager::Color look in various places, typically "$HOME/gimp-1.x/palettes/Named_Colors" with and without the version number, and in /usr/share/gimp/palettes/. The palette file must have color names.
my $c1 = Imager::Color->new(gimp=>snow);
my $c1 = Imager::Color->new(gimp=>snow, palette=>testimg/test_gimp_pal);
xname which specifies a color from an X11 rgb.txt file. You can specify the filename of the rgb.txt file with the palette parameter, or let Imager::Color look in various places, typically /usr/lib/X11/rgb.txt.
my $c1 = Imager::Color->new(xname=>blue) # usually RGB(0, 0, 255)
builtin which specifies a color from the built-in color table in Imager::Color::Table. The colors in this module are the same as the default X11 rgb.txt file.
my $c1 = Imager::Color->new(builtin=>black) # always RGB(0, 0, 0)
name which specifies a name from either a GIMP palette, an X rgb.txt file or the built-in color table, whichever is found first.
channel0, channel1, etc, each of which specifies a single channel. These can be abbreviated to c0, c1 etc.
channels which takes an arrayref of the channel values.
Optionally you can add an alpha channel to a color with the alpha or a parameter.
These color specifications can be used for both constructing new colors with the new() method and modifying existing colors with the set() method.
Download (0.83MB)
Added: 2006-10-27 License: Perl Artistic License Price:
1092 downloads
HTML Objects 1.2.4
HTML Objects is a Perl module library for turning HTML tags into Perl objects. more>>
HTML Objects is a Perl module library for turning HTML tags into Perl objects. HTML Objects allows Web pages to be manipulated as a data structure rather than text.
Once manipulation is done, the entire page is generated via depth-first recursion.
<<lessOnce manipulation is done, the entire page is generated via depth-first recursion.
Download (0.025MB)
Added: 2006-05-09 License: GPL (GNU General Public License) Price:
1263 downloads
Color::Scheme 1.02
Color::Scheme is a module used to generate pleasant color schemes. more>>
Color::Scheme is a module used to generate pleasant color schemes.
This module is a Perl implementation of Color Schemes 2, a color scheme generator. Start by visitng the Color Schemes 2 web site and playing with the colors.
When you want to generate those schemes on the fly, begin using this modoule. The descriptions herein dont make too much sense without actually seeing the colorful results.
Henceforth, paragraphs in quotes denote documentation copied from Color Schemes 2.
"Important note: This tool doesnt use the standard HSV or HSB model (the same HSV/HSB values ie. in Photoshop describe different colors!). The color wheel used here differs from the RGB spectre used on computer screens, its more in accordance with the classical color theory.
This is also why some colors (especially shades of blue) make less bright shades than the basic colors of the RGB-model. In plus, the RGB-model uses red-green-blue as primary colors, but the red-yellow-blue combination is used here.
This deformation also causes incompatibility in color conversions from RGB-values. Therefore, the RGB input (eg. the HTML hex values like #F854A9) is not exact, the conversion is rough and sometimes may produce slightly different color."
<<lessThis module is a Perl implementation of Color Schemes 2, a color scheme generator. Start by visitng the Color Schemes 2 web site and playing with the colors.
When you want to generate those schemes on the fly, begin using this modoule. The descriptions herein dont make too much sense without actually seeing the colorful results.
Henceforth, paragraphs in quotes denote documentation copied from Color Schemes 2.
"Important note: This tool doesnt use the standard HSV or HSB model (the same HSV/HSB values ie. in Photoshop describe different colors!). The color wheel used here differs from the RGB spectre used on computer screens, its more in accordance with the classical color theory.
This is also why some colors (especially shades of blue) make less bright shades than the basic colors of the RGB-model. In plus, the RGB-model uses red-green-blue as primary colors, but the red-yellow-blue combination is used here.
This deformation also causes incompatibility in color conversions from RGB-values. Therefore, the RGB input (eg. the HTML hex values like #F854A9) is not exact, the conversion is rough and sometimes may produce slightly different color."
Download (0.011MB)
Added: 2007-03-29 License: Perl Artistic License Price:
944 downloads
HTML::HiLiter 0.13
HTML::HiLiter is a Perl module that can highlight words in an HTML document just like a felt-tip HiLiter. more>>
HTML::HiLiter is a Perl module that can highlight words in an HTML document just like a felt-tip HiLiter.
HTML::HiLiter is designed to make highlighting search queries in HTML easy and accurate. HTML::HiLiter was designed for CrayDoc 4, the Cray documentation server. It has been written with SWISH::API users in mind, but can be used within any Perl program.
SYNOPSIS
use HTML::HiLiter;
my $hiliter = new HTML::HiLiter(
WordCharacters => w-.,
BeginCharacters => w,
EndCharacters => w,
HiTag => span,
Colors => [ qw(#FFFF33 yellow pink) ],
Links => 1
TagFilter => &yourtagcode(),
TextFilter => &yourtextcode(),
Force => 1,
SWISH => $swish_api_object
);
$hiliter->Queries( foo bar or "some phrase" );
$hiliter->CSS;
$hiliter->Run(some_file_or_URL);
Main features:
- With HTML::Parser enabled (default), HTML::HiLiter evals highlighted HTML chunk by chunk, buffering all text within an HTML block element before evaluating the buffer for highlighting. If no matches to the queries are found, the HTML is immediately printed (default) or cached and returned at the end of all evaluation (Print=>0).
- You can direct the print() to a filehandle with the standard select() function in your script. Or use Print=>0 to return the highlighted HTML as a scalar string.
- Turn highlighting off on a per-tagset basis with the custom HTML "nohiliter" attribute. Set the attribute to a TRUE value (like 1) to turn off highlighting for the duration of that tag.
- Ample debugging. Set the $HTML::HiLiter::Debug variable to a level between 1 and 3, and lots of debugging info will be printed within HTML comments .
- Will highlight link text (the stuff within an tagset) if the HREF value is a valid match. See the Links option.
- Smart context. Wont highlight across an HTML block element like a tagset or a tagset. (IMHO, your indexing software shouldnt consider matches for phrases that span across those tags either.)
- Rotating colors. Each query gets a unique color. The default is four different colors, which will repeat if you have more than four queries in a single document. You can define more colors in the new() object call.
- Cascading Style Sheets. Will add a
<<lessHTML::HiLiter is designed to make highlighting search queries in HTML easy and accurate. HTML::HiLiter was designed for CrayDoc 4, the Cray documentation server. It has been written with SWISH::API users in mind, but can be used within any Perl program.
SYNOPSIS
use HTML::HiLiter;
my $hiliter = new HTML::HiLiter(
WordCharacters => w-.,
BeginCharacters => w,
EndCharacters => w,
HiTag => span,
Colors => [ qw(#FFFF33 yellow pink) ],
Links => 1
TagFilter => &yourtagcode(),
TextFilter => &yourtextcode(),
Force => 1,
SWISH => $swish_api_object
);
$hiliter->Queries( foo bar or "some phrase" );
$hiliter->CSS;
$hiliter->Run(some_file_or_URL);
Main features:
- With HTML::Parser enabled (default), HTML::HiLiter evals highlighted HTML chunk by chunk, buffering all text within an HTML block element before evaluating the buffer for highlighting. If no matches to the queries are found, the HTML is immediately printed (default) or cached and returned at the end of all evaluation (Print=>0).
- You can direct the print() to a filehandle with the standard select() function in your script. Or use Print=>0 to return the highlighted HTML as a scalar string.
- Turn highlighting off on a per-tagset basis with the custom HTML "nohiliter" attribute. Set the attribute to a TRUE value (like 1) to turn off highlighting for the duration of that tag.
- Ample debugging. Set the $HTML::HiLiter::Debug variable to a level between 1 and 3, and lots of debugging info will be printed within HTML comments .
- Will highlight link text (the stuff within an tagset) if the HREF value is a valid match. See the Links option.
- Smart context. Wont highlight across an HTML block element like a tagset or a tagset. (IMHO, your indexing software shouldnt consider matches for phrases that span across those tags either.)
- Rotating colors. Each query gets a unique color. The default is four different colors, which will repeat if you have more than four queries in a single document. You can define more colors in the new() object call.
- Cascading Style Sheets. Will add a
Download (0.028MB)
Added: 2007-03-01 License: Perl Artistic License Price:
967 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above html color code search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed