Created
February 8, 2015 11:26
-
-
Save ptrelford/e9dabe1f05ee181a7b8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load "Fun3D.fsx" | |
open Fun3D | |
let head = | |
Fun.sphere | |
|> Fun.color Color.yellow | |
let hat = | |
Fun.cylinder | |
|> Fun.color Color.purple | |
|> Fun.scale (2.0,1.5,2.0) | |
|> Fun.move (0.0,1.5,0.0) | |
let body = | |
Fun.cube | |
|> Fun.color Color.red | |
|> Fun.scale(2.0,2.5,1.0) | |
|> Fun.move(0.0,-2.1,0.0) | |
let leg = | |
Fun.cylinder | |
|> Fun.scale(1.0,2.5,1.0) | |
|> Fun.color Color.cyan | |
let leg1 = | |
leg |> Fun.move (0.5,-4.0,0.0) | |
let leg2 = | |
leg |> Fun.move (-0.5,-4.0,0.0) | |
let main() = | |
head $ | |
hat $ | |
body $ | |
leg1 $ | |
leg2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment