Tiles 2

This script will take up to 6 colours chosen by the user and create a tiled image by choosing a colour for each tile based on a percentage value entered by the user. The percentages for each colour determine the percent of tiles in the image that will use that colour. The colour and brush to use for the grout can also be chosen, along with the width and height of the image and the width and height of the tiles themselves.

Check out the README.txt for more info.

Comments and any useful info are welcome since this is my first attempt at a script.

If anyone wants to modify the script then they are more than welcome to do so.

NuttyMonk

[edit] updated the script to v2 based on comments from RobA. The changes only affect the tile grout which is now much faster at being drawn.

AttachmentSize
tiles2.zip307.82 KB
tiles2-v2.zip307.59 KB

Comments

Selected area

An awesome extension would be to only "fill" a selection with the statistical noise mix.
An even more ambitious idea would be to "correct" the noise statistics in an area.

Wish I could help with the coding, but it's very far removed from what I know.

tiles2 improvement suggestion

I found the offending exe and killed it, now the script runs fine and it's gonna be really useful.

An improvement suggestion.
It's a pain to have to select the colours by hand, would it be possible to get the last 6 colours used from the colour setting interface?

Thanx anyway

RiaanR

Colours

It might be possible but i don't know how to go about it. I still don't know what most of the script procedures do. Someone would have to give me some idea how it could be done.

Glad you figured out what your error message was about.

Cheers

Colours

i do not think that possible

gimp know BG FG color of that moment, other info may be somehow stored in UNDO but not in accessible format

Colours

It might be possible but i don't know how to go about it. I still don't know what most of the script procedures do. Someone would have to give me some idea how it could be done.

Glad you figured out what your error message was about.

Cheers

Tiles 2 error

I tried to run this awesome sounding script, but I got this error with the default settings:
"Error while executing
(script-fu-tiles2 800 600 7 7 '(40 40 40) 33 '(45 45 45) 32 '(50 50 50) 32 '(0 60 0) 1 '(0 75 0) 1 '(0 90 0) 1 6 1 '(35 35 35) 255)
ERROR: unbound variable (errobj random)"

Any ideas?
Win XP, GIMP 2.6.5

RiaanR