2-- These structures are purely geometric forms, no colors or styles.
3-- Could be the basis of some cool geometry stuff :)
5module Graphics.Geometry where
8import Native.Utils (toFloat)
10type Path = [(Float,Float)]
13segment p1 p2 = [p1,p2]
15type Shape = [(Float,Float)]
17polygon points = points
19rect w h = [ (0-w/2,0-h/2), (0-w/2,h/2), (w/2,h/2), (w/2,0-h/2) ]
26 f i = (hw * Math.cos (t*i), hh * Math.sin (t*i))
29circle r = oval (2*r) (2*r)
34 f i = ( r * Math.cos (t*i), r * Math.sin (t*i) )
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list