Thanks, that’s quite nice indeed!
But i’m a wanderer, i have to explore this a bit more.
Found out i can fix the “tilted” look with even numbers here:
R = 2*cos(pi/4+$angle*pi/360)*rot($angle°);
Which makes this tileable:
Adding points to the polygon makes it look weird but what i want is really just draw the shape once, but in a random or chosen angle. It’s just so i can switch rectangle
to polygon
in the previous code i posted (the bubbly chaos stuff). rectangle
is cool but i can’t (can i?) use it to draw tilted rectangles/squares.
In your example the square still grows from tiny to oversized. What mod would make it keep it’s defined/original size? Like rotate
would do, but without the added borders? I don’t want it to go outside the image, it would break the seamless tiling. (at least AFAIK).
Then if erode/dilate are out, maybe i could cheat by drawing the shape a few times (warning, brainless one-liner below, i hardly ever use vars in commandline mode, it’s just for testing):
gmic 800,800,1,3,255 run 'repeat 100 polygon[0] 4,{50+$>}%,{1+$>}%,{99-$>}%,{50+$>}%,{50-$>}%,{99-$>}%,{1+$>}%,{50-$>}%,1,0xFFFFFFFF,0,0,0 polygon[0] 4,{50.05+$>}%,{1.05+$>}%,{99.05-$>}%,{50.05+$>}%,{50.05-$>}%,{99.05-$>}%,{1.05+$>}%,{50.05-$>}%,1,0xFFFFFFFF,0,0,0 polygon[0] 4,{49.95+$>}%,{0.95+$>}%,{98.95-$>}%,{49.95+$>}%,{49.95-$>}%,{98.95-$>}%,{0.95+$>}%,{49.95-$>}%,1,0xFFFFFFFF,0,0,0 w. wait 25 done d'
It’s in % so it’s a bit trickier than adding/substracting one pixel to/from coords to get some thickness. As you can see, there are some gaps in between lines:
EDIT: wrong image
BTW it seems some lines still appear thinner than others (bottom left, top right). Don’t know what causes this.
Or go crazy and simulate everything with thickline
? After all, back when i was still drawing by hand (that’s so 1950 now :P) i was only using lines, not squares…
Anyway, thank you guys