I've got something, it took ages to work out and I still don't think it looks like a natural snowflake but here it is.
rem OBese87's Snowflake (21/10/09)
set display mode 1024,768,32
hide mouse
sync on:sync rate 0
ink -2,0
snowflake(512.0, 384.0, 300.0, 0.0, 0)
sync
wait key
End
rem === FUNCTIONS ===
Function snowflake(ox#,oy#,h#, ang#,run)
rem triangle vertices
ax# = ox#+sin(ang#)*h# : ay# = oy#-cos(ang#)*h#
bx# = ox#-sin(ang#+60)*h# : by# = oy#+cos(ang#+60)*h#
cx# = ox#-sin(ang#+300)*h# : cy# = oy#+cos(ang#+300)*h#
rem draw triangle
line ax#,ay#,bx#,by#
line bx#,by#,cx#,cy#
line cx#,cy#,ax#,ay#
rem next level (set depth here)
if run <= 4
for dg = 0 to 300
snowflake(ox#+sin(ang#+dg)*(h#/1.5),oy#-cos(ang#+dg)*(h#/1.5),h#/3.0,ang#+dg,run+1)
next dg
endif
Endfunction
`//
I hope I typed it correctly. It took me several hours of number poking to get to this stage (my knowledge of angles and transforming is not very good). See if you can make the drawing better.
TGC Forum - converting error messages into sarcasm since 2002.