tile squares with random colours from a palette - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: tile squares with random colours from a palette (/Thread-tile-squares-with-random-colours-from-a-palette) |
tile squares with random colours from a palette - Espermaschine - 07-30-2018 Is there a filter or a script that lets me tile squares with different colours in a random fashion ? Lets say i have a red, a black and a yellow 40x40px square and i want x rows and x columns. Like this: [attachment=1977] RE: tile squares with random colours from a palette - Ofnuts - 07-30-2018
With some luck some of it can be done with my luminosity-tiler script. RE: tile squares with random colours from a palette - Espermaschine - 07-31-2018 (07-30-2018, 11:29 PM)Ofnuts Wrote: good idea ! i noticed we already discussed something similar in your bathroomtile thread and you mentioned the G'MIC - Taquin filter, which is another option, but its limited to 20x20 tiles EDIT: (07-30-2018, 11:29 PM)Ofnuts Wrote: Threshold the layer mask (high values on top layers) im still having a hard time with the thresholding i want a 12px square tile, my canvas is 480px i render solid noise 12x12, then Pixelize 12x12 and auto stretch contrast so for four colours i do what ? divide 255 by 4 = 64 top layer threshold 255 - 64 = 191 (left handle) second layer from top 255 - 128 = 127 third layer from top 255 - 192 = 63 that gives me an uneven distribution of colours...is my calculation wrong ? [attachment=1978] RE: tile squares with random colours from a palette - Ofnuts - 07-31-2018 Look at the histogram of solid noise, it is far from flat.... You have to compensate for this. And by the way, with the histogram dialog, you can easily determine the limits of a range that contains 25% of the pixels. |