This texture arranges dots similar to the Polka dots in fashion design. There are 20 layouts for the dots ranging from a single dot, then vertices of Platonic soids derivatives and vertices of a sunflower seeds arragement (also known as Fibonacci lattice) with up to 5000 dots. Click on a snapshot to open it online.
Code template of parameters with their default values.
import * as PET from "pet/patterns/polka-dots.js";
:
model.material.map = PET.texture( );
PET.material( model.material );
The parameters of the texture generator are:
width
– texture width in pixels, default 512height
– texture height in pixels, default 256layout
– dot layout number [1,$layouts], default 9scale
– relative dot size [0,100], default 50blur
– smoothness of dots edges [0,100], default 20color
– color of dots, default 0x000000 (black)background
– color of background, default 0xFFFFFF (white)Additional system parameter:
$layouts
– the number of supported layouts, currently 20All texture modules share the same API.
pattern( x, y, z, color, options )
– pattern implementationtexture( {params} )
– generator for a texture with given parametersdefaults
– object with default parametersmaterial( ... )
– material shader patcher