Hello mister no name !
Here the script, there are quite a lot of sliders but as it is fast it will be not difficult to understand how it works. It could surely be done with GH components but it is faster for me to code.
The logic is simple.
Draw “lines” in X and Y, deconstruct each line in nn points, look at the color at each point and then measure the distance from a defined color (even stripe has a color, uneven stripe another color). As a color is a sort of 3d point I use the Point3d euclidian distance metrics.
Weaving is very simple, it is just a Sinus. Hope you know this function.
A filename of the image you want
color of uneven vertical stripe
color of even vertical stripe
color of uneven horizontal stripe
color of even horizontal stripe
number of vertical stripes
number of horizontal stripes
number of subdivision along the stripe
factor of multiplications of stripes (> 1 can overlap)
a bool if you want to invert
distance from the color, the max distance is sqrt(3) = 1.7
relative height of weaving
min relative width of strips
a toggle if you want to make tubes
parameters of the colors using Joseph @Joseph_Oster
Xylography.gh (26.8 KB)