im wondering how to make a triangle
2 responses
-
Howdy jpflynn
You ask a good question, and it took a little searching.
The 'Nobody knows Shoes' PDF - see the FAQ page - mentions making shapes like 'oval' and 'rect', but nothing more abstract.
Found what you want in the 'Shoes Manual' in hackety-hack itself. Do a search for 'shape' and you will get a page describing making an arbitrary shapes with lines, arcs and moves.
So a quick example of a triangle would be to move to a spot, make a line, make a line, then line back to the starting point:
Shoes.app do fill red(0.2) shape do move_to(90,90) line_to(45,55) line_to(20,60) line_to(90,90) end endHope this helps getting you started.
E
-
force answered due to age.