Skip to content

Instantly share code, notes, and snippets.

@hertsch
Last active December 29, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hertsch/7675780 to your computer and use it in GitHub Desktop.
Save hertsch/7675780 to your computer and use it in GitHub Desktop.
Helpfile for the kitCommand ~~ ral ~~

~~ ral ~~

Introduction

The kitCommand ~~ ral ~~ provide you with a full RAL color palette. You can select a specific RAL color, multiple colors or specific RAL palettes. A click to a color can return his RAL value to the given URL.

For a general help to the kitCommands, the usage and the general available parameters please refer the kitCommand help.

Parameters

###color[]

The parameter color is identical to colors - you can use this parameter as singular or plural expression like you want.

###colors[]

Specify one or more RAL color codes or parts of them.

~~ ral colors[] ~~

without any number between the square brackets will display all available RAL colors (around 220 colors)

~~ ral colors[8014] ~~

will display the color RAL 8014 - Sepia brown.

~~ ral colors[8014,9007] ~~

will display the colors RAL 8014 - Sepia brown and RAL 9007 - Grey aluminium

~~ ral colors[1] ~~

will display all colors from RAL 1001 up to RAL 1040

~~ ral colors[901] ~~ 

will display the colors RAL 9010, RAL 9011, RAL 9016, RAL 9017 and RAL 9018.

You can combine them as you want.

###height[]

By default ~~ ral ~~ will display color squares with a height of 100 pixels, you can specify another height

~~ ral ... height[50] ~~

will display squares with a height of 50 pixels.

###link[]

If you specify a link as target, ~~ ral ~~ will create links for each RAL color and on a click call the given link with a attached GET parameter ral=<number>, where <number> is the RAL color number which was selected.

The link is expected as a complete URL:

~~ ral ... link[http://localhost/page/ral-result.php] ~~

will create a link, i.e. for RAL 9020 like

http://localhost/page/ral-result.php?ral=9020

so it is easy to use ~~ ral ~~ for your own applications.

###width[]

By default ~~ ral ~~ will display color squares with a width of 150 pixels, you can specify another width

~~ ral ... width[120] ~~

will display squares with a width of 120 pixels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment