How to produce a effect like this? Adobe Illustrator.
1 Answer
This is called Truchet pattern and can easily be created by using script. Script follows as and rest follow gif tutorial attached. Every time you use this script, effect will be random:
object = app.activeDocument.selection [0] ;
for(j=0; j<40; j++)
{
//make a row
for(i=0; i<40; i++)
{
newobject = object.duplicate() ;
newobject.translate(object.width*(i+1),-object.height*(j+1)) ;
newobject.rotate(Math.floor(Math.random()*4)*90) ;
}
}
-
-
-
If you put four spaces before your code it formats it as a code block. (Or select code and press code button in editir to add four spaces). Plese dont bold big blocks of code. Otherwise good answer.– joojaaCommented Aug 16, 2021 at 15:21
-
@joojaa It was copy/paste problem and I did not notice. Thanks for correction though. Commented Aug 16, 2021 at 15:27
-
1@Masoud Moghaddam You can save as js (extension) in notepad. Commented Aug 18, 2021 at 9:53