Function to print a diamond shape

Chris Williams yoreanon-chrisw at yahoo.co.jp
Thu Mar 20 14:52:39 PDT 2014


On Thursday, 20 March 2014 at 21:25:03 UTC, Ali Çehreli wrote:
> What interesting, boring, efficient, slow, etc. ways are there?
>
> Ali

Well one of the more convoluted methods that I can think of would 
be to define a square as a set of four vectors, rotate 45 
degrees, and then create a rasterizer that checks for the 
presence of the rect at sequential points, and plots those to the 
console.


More information about the Digitalmars-d-learn mailing list