html colors
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3279

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
HTML::Declare 2.1
HTML::Declare is a Perl module for When Template Systems Are Too Huge And Heredocs Too Messy. more>>
HTML::Declare is a Perl module for When Template Systems Are Too Huge And Heredocs Too Messy.
SYNOPSIS
# Import all constructors
use HTML::Declare :all;
# A simple hello world
print HTML {
_ => [
HEAD { _ => TITLE { _ => Hello World! } },
BODY { _ => Hello World! }
]
};
# Import specific constructors
use HTML::Declare qw/DIV A/;
# A simple anchor nested in a div
my $tree = DIV {
_ => [
A {
href => http://127.0.0.1,
_ =><<less
SYNOPSIS
# Import all constructors
use HTML::Declare :all;
# A simple hello world
print HTML {
_ => [
HEAD { _ => TITLE { _ => Hello World! } },
BODY { _ => Hello World! }
]
};
# Import specific constructors
use HTML::Declare qw/DIV A/;
# A simple anchor nested in a div
my $tree = DIV {
_ => [
A {
href => http://127.0.0.1,
_ =><<less
Download (0.019MB)
Added: 2007-08-13 License: Perl Artistic License Price:
802 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 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
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
HTMLpage 0.3
HTMLpage is a text-based HTML editor. more>>
HTMLpage is a text-based HTML editor. It can use dragndrop to generate hyperlinks and image tags with relative links and image sizes. It allows you to create a table by highlighting and copying a table from a document, pasting it into HTMLpage, and then clicking TABLE-ify.
It will turn the comma-delimited data into a nice neat HTML table. Plain text can be converted to HTML. It also features spell-checking, color tag generation from a color picker, and keyboard shortcuts for several common HTML tags.
Main features:
- It can generate image tags and hyperlinks via Drag N Drop
- Convert simple text passages to HTML, basically giving you proper line breaks and paragraph indentation, along with generating Link tags from any URLs you may have included. HTML-ify works on selected text, as does the TABLE-ify, listed below.
- Convert tab-delimited info into an HTML table (meaning you can copy a table from a document or Web page, paste it into HTMLpage, the TABLE-ify it to generate a simple, neat HTML table.) Will also turn URLs into links.
- Can accommodate multi-line table-cell info.
- Spell checking on text selections/passages
- Insert HTML color codes via a color dialog
- Has search, go to line and page-wide replace functions.
- Date insertion. For example: Saturday, 08/20/2005
Enhancements:
- A tag generation issue with images where when implementing MIME types, images made HREFs instead of image tags was fixed.
- pyGTK 2.6 is now used.
- Deprecation warnings were removed.
<<lessIt will turn the comma-delimited data into a nice neat HTML table. Plain text can be converted to HTML. It also features spell-checking, color tag generation from a color picker, and keyboard shortcuts for several common HTML tags.
Main features:
- It can generate image tags and hyperlinks via Drag N Drop
- Convert simple text passages to HTML, basically giving you proper line breaks and paragraph indentation, along with generating Link tags from any URLs you may have included. HTML-ify works on selected text, as does the TABLE-ify, listed below.
- Convert tab-delimited info into an HTML table (meaning you can copy a table from a document or Web page, paste it into HTMLpage, the TABLE-ify it to generate a simple, neat HTML table.) Will also turn URLs into links.
- Can accommodate multi-line table-cell info.
- Spell checking on text selections/passages
- Insert HTML color codes via a color dialog
- Has search, go to line and page-wide replace functions.
- Date insertion. For example: Saturday, 08/20/2005
Enhancements:
- A tag generation issue with images where when implementing MIME types, images made HREFs instead of image tags was fixed.
- pyGTK 2.6 is now used.
- Deprecation warnings were removed.
Download (1.2MB)
Added: 2005-08-25 License: GPL (GNU General Public License) Price:
1521 downloads
HTML::Chunks 1.53
HTML::Chunks is a simple nested template engine for HTML, XML and XHTML. more>>
HTML::Chunks is a simple nested template engine for HTML, XML and XHTML.
This class implements a simple text-based template engine, originally intented to allow web applications to completely separate layout HTML from programming logic. However, the engine is flexible enough to be applied to other text-based situations where templates are helpful, such as generating email messages, XML data files, etc.
SYNOPSIS
my $engine = new HTML::Chunks(@chunkFiles);
$engine->readChunkFile(morechunks.html);
$engine->addChunk($smallChunk, $hugeChunk);
$engine->addNamedChunk(myChunk, $chunk);
$engine->output(myChunk, {
firstName => Homer,
lastName => Simpson,
meals => &outputMeals
}, @extraData);
my @names = $engine->getChunkNames();
my $chunk = $engine->getChunk(myChunk);
my $oldValue = $engine->setCrush(0);
<<lessThis class implements a simple text-based template engine, originally intented to allow web applications to completely separate layout HTML from programming logic. However, the engine is flexible enough to be applied to other text-based situations where templates are helpful, such as generating email messages, XML data files, etc.
SYNOPSIS
my $engine = new HTML::Chunks(@chunkFiles);
$engine->readChunkFile(morechunks.html);
$engine->addChunk($smallChunk, $hugeChunk);
$engine->addNamedChunk(myChunk, $chunk);
$engine->output(myChunk, {
firstName => Homer,
lastName => Simpson,
meals => &outputMeals
}, @extraData);
my @names = $engine->getChunkNames();
my $chunk = $engine->getChunk(myChunk);
my $oldValue = $engine->setCrush(0);
Download (0.010MB)
Added: 2006-09-08 License: Perl Artistic License Price:
1141 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
HTML QuickForm Wizard 0.1.7
HTML QuickForm Wizard project implements a wizard whose pages and flows are described by a FSM (finite state machine). more>>
HTML QuickForm Wizard project implements a wizard whose pages and flows are described by a FSM (finite state machine).
The next page is determined from the actual page, the "internal" state of the wizard, and a set of rules. The list of states (pages) and ruleset are described using an XML file (or string).
Enhancements:
- This release fixes initialization of the starting and current pages.
<<lessThe next page is determined from the actual page, the "internal" state of the wizard, and a set of rules. The list of states (pages) and ruleset are described using an XML file (or string).
Enhancements:
- This release fixes initialization of the starting and current pages.
Download (0.037MB)
Added: 2007-04-18 License: The PHP License Price:
923 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::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
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::DWT 2.08
HTML::DWT is a Perl module with DreamWeaver HTML Template. more>>
HTML::DWT is a Perl module with DreamWeaver HTML Template.
INSTALLATION
Unzip/tar the archive:
tar xvfz HTML-DWT-2.08
Create the makefile
perl Makefile.PL
Make the module (must have root access to install)
make
make test
make install
SYNOPSIS
use HTML::DWT;
$template = new HTML::DWT(filename => "file.dwt");
%dataHash = (
doctitle => DWT Generated,
leftcont => some HTML content here
);
$html = $template->fill(%dataHash);
or
use HTML::DWT qw(:Template);
$template = new HTML::DWT(filename => "file.dwt");
$template->param(
doctitle => < title >DWT Generated< /title >,
leftcont => Some HTML content here
);
$html = $template->output();
A perl module designed to parse a simple HTML template file generated by Macromedia Dreamweaver and replace fields in the template with values from a CGI script.
<<lessINSTALLATION
Unzip/tar the archive:
tar xvfz HTML-DWT-2.08
Create the makefile
perl Makefile.PL
Make the module (must have root access to install)
make
make test
make install
SYNOPSIS
use HTML::DWT;
$template = new HTML::DWT(filename => "file.dwt");
%dataHash = (
doctitle => DWT Generated,
leftcont => some HTML content here
);
$html = $template->fill(%dataHash);
or
use HTML::DWT qw(:Template);
$template = new HTML::DWT(filename => "file.dwt");
$template->param(
doctitle => < title >DWT Generated< /title >,
leftcont => Some HTML content here
);
$html = $template->output();
A perl module designed to parse a simple HTML template file generated by Macromedia Dreamweaver and replace fields in the template with values from a CGI script.
Download (0.017MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1141 downloads
PHP HTML Graph Class 1.0
PHP HTML Graph Class is a class for drawing vertical bar graphs using only HTML and CSS. more>>
PHP HTML Graph Class is a class for drawing vertical bar graphs using only HTML and CSS. Simple and grouped bars can be created. You can change everything regarding the looks as the output is template-driven.
On the fly, you can change the size of graph, the color of all or individual bars, add labels, a title, and footnotes, or customize the CSS style of all elements. The width and height of bars can be specified in pixels or percentages. The code is heavily documented.
Enhancements:
- In some PHP versions, there were some issues regarding passing variables by reference.
- The class would produce no output (nor errors) in PHP versions lower than 5 due to the different implementations of PHPs get_class() function in these versions.
<<lessOn the fly, you can change the size of graph, the color of all or individual bars, add labels, a title, and footnotes, or customize the CSS style of all elements. The width and height of bars can be specified in pixels or percentages. The code is heavily documented.
Enhancements:
- In some PHP versions, there were some issues regarding passing variables by reference.
- The class would produce no output (nor errors) in PHP versions lower than 5 due to the different implementations of PHPs get_class() function in these versions.
Download (MB)
Added: 2006-11-14 License: Free for non-commercial use Price:
1077 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 colors 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