July 6th, 2005


userinfo senji
2005/07/06 17:01:00 - Postscript
I've finally gained the effort-tokens I needed to make postscript hex-grid producing code. However, either my implementation is inefficient or gv is very slow.

hexgrid.ps for the terminally curious.
Current Mood: [mood icon] tired
Entry Tags: geeky, milsf, programming

< | 6 glosses | comment | > )

userinfo fluffymormegil
2005/07/06 16:06:31
Embrace the power of AND.
reply | thread )
userinfo senji
[userpic]
2005/07/06 16:07:28
I don't see much point in finding two scapegoats...
reply | parent | thread )
userinfo fluffymormegil
2005/07/06 16:08:05
It's always useful to have a spare goat.
reply | parent | thread )
userinfo king_of_wrong
[userpic]
2005/07/06 19:20:28
In case the scratch monkey fails?
reply | parent | thread )
userinfo mtbc100
2005/07/06 23:59:15
Interesting, thanks for sharing! Mine is here.
reply | thread )
userinfo toothycat
[userpic]
2005/07/07 23:33:11 - Evil recursive version for you

%!PS

/recurse
{
36 { dup } repeat
6 {
6 { drawline 60 rotate } repeat
60 rotate dup 2 mul 0 rmoveto
} repeat
4 mul 0 rmoveto
} def

/drawline
{
dup 8 le { 0 rlineto } { 4 div recurse } ifelse
} def


1 setlinewidth
400 300 newpath moveto

256 drawline stroke

showpage


reply | thread )

< | 6 glosses | comment | > )

Postscript - Squaring the circle...

> log in
> recent entries
> fiends
> archive
> toothywiki page
> profile
> new entry
> recent comments


> go to top