nanDECK Version 1.27.2

Hello everybody, there is a new version of nanDECK, with bugs fixed and new features:

New POLY directive

With this directive you can draw an irregular poygon, adding one point with each line, then close it by specifying the last point and the color. Syntax:

POLY="range", pos x1, pos y1, html color | html gradient, html color | EMPTY, thickness



New BOOKMARK directive

This directive adds the referred bookmark (from 0 to 9) to the current line in the editor (or another, if the offset parameter is specified, positive toward the end, negative toward the start). Note that you can go to a bookmark line with CTRL+(0..9).


BOOKMARK=number, offset


number: the number of the bookmark, from 0 to 9

offset: this value is added to the current line in the editor

These bookmarks are automatically added in the validation step at the 1st istance of each directive:


New LOOKUP function

This function creates a label/sequence with the position of a label/sequence in a sequence, the syntax is:

[name] = LOOKUP(value, list)

For example:

[sequence] = LOOKUP(alpha|gamma|delta, alpha|beta|gamma|delta)


[sequence] = 1|3|4

New COLRGB function

This function creates a label containing a color, providing values from 0 to 255 for the three components, this is the syntax:

[name] = COLRGB(red, green, blue)

New RANGEINT function

This function returns the intersection between two or more ranges. Example:


[int3] is equal to “4,6,8,12”.

Undo/Redo in Visual Editor

In the visual editor you can undo/redo changes with CTRL+Z, CTRL+SHIFT+Z (or the two buttons in the top-left of the window).

Added star shaped gradients

An angle between 401 and 500 in a gradient draws a star gradient with 1-100 points. Example:


Added parameters in GRADIENTS for star shaped gradients

You can specify in a GRADIENTS line the parameters for compression, rotation, point factor, twist and scatter for star gradients. Example:


Note: the parametes for rotation and scatter in GRADIENTS are also used in conic gradients.

Added parameter in HTMLTEXT to specify the paragraph separator

The 12th parameters in HTMLTEXT contains the font applied to each paragraph, by default the paragraphs are divided by <br>, with the new 13th parameter you can specify what is used as separator between paragraphs.

Added parameters in HTMLMARGIN for vertical stretch and rotation

The 11th and 12th parameters in HTMLMARGINS allow text to be stretched vertically and rotated in HTMLTEXT. The syntax is:

HTMLMARGINS=htmlfont, margin top, margin left, margin right, margin bottom, paragraph alignment, line spacing, cell width, cell height, stretch h, stretch v, angle

Added parameters in ORIGIN to modify cm for % values

The 6th and 7th parameters in ORIGIN specify the measures corresponding to 100% (horizontally and vertically) in the following lines.

Added parameter in STAR for inner skewing

The 12th parameter in STAR rotate the inner part of the shape. Example:


Added parameter in VORONOI to specify separation between zones

The 8th parameter in VORONOI specifies the width of an empty space between the shapes. Example:

<voro1> = 2, 2, 0, 0, #FF0000
<voro2> = 4, 2, 0, 0, #00FF00
<voro3> = 2, 7, 0, 0, #0000FF
<voro4> = 4, 7, 0, 0, #00FFFF
<voro5> = 3, 4.5, 0, 0, #FFFF00
<bord1> = 2, 2, 0, 0, #800000
<bord2> = 4, 2, 0, 0, #008000
<bord3> = 2, 7, 0, 0, #000080
<bord4> = 4, 7, 0, 0, #008080
<bord5> = 3, 4.5, 0, 0, #808000
VORONOI = 1, 0.5, 0.5, 5, 8, voro*, E, 0.5

Added I flag in COLORCHANGE to invert colors

The I flag inverts the colors in the area specified in COLORCHANGE.

Added A flag in COLORCHANGE to specify more than one change

The A flag in COLORCHANGE means that instead of a single couple, a sequence of colors are changed in the correspondent colors in another sequence.

Added & parameter in alpha gradients to specify compression

In an gradients used in alpha parameter you can specify the compression factor with a & symbol and a number.

Added X flag in HTMLIMAGE to not smooth the image

As a default, images shown in HTMLTEXT using an HTMLIMAGE are smooth, but if you add the X flag in HTMLIMAGE, the smooth is removed (i.e. the image is pixelated).

Added D flag in HTMLKEY to delete a key

The D flag in HTMLKEY deletes a key already defined (i.e. the text is shown as not replaced).

Added E flag in FRAMEPER to select outer frames

Instead of adding all the frames, the FRAMEPER function with the E flag creates only the outer frames (that is, the frames in the perimeter).

Added K flag in SAVE to saved shrinked areas

With this flag, the saved images are reduced by eliminating the area with the color located in the upper left pixel of the area indicated as a parameter.

Added flag in INFO for deck size and date/time

You can use these flags in the INFO function:

N the number of cards in the deck
Y year (date)
M month (date)
A day (date)
O hour (time)
I minute (time)
E second (time)
X epoch

Liked it? Take a second to support Nand on Patreon!
Become a patron at Patreon!

3 thoughts on “nanDECK Version 1.27.2”

    1. Actually not (I do not own a Mac and it’s not easy to develop apps for it without). I know from other users that you can use nanDECK with CrossOver.

      1. I used to run nanDeck on a macbook pro using the crossover/wine tools. These days I do something similar with wine on a chromebook, and it generally works fine.

Leave a Reply

Your email address will not be published. Required fields are marked *