% --- Main script for generating the dithered trui image close all ; clear all ; ninit = 5e+4 ; % Upper bound on potential dot positions (PDPs) to use dotmax = 5e+5 ; % Upper bound on number of dots to place % --- Carry out the node placing xy = node_placing ([0 1 0 1],ninit,dotmax,@radius_trui) ; % --- Display the resulting dithered image plot(xy(:,1),xy(:,2),'k.'); axis square