Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.8K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to Draw an irregular shape

Posted 11 years ago
POSTED BY: Kashif Nazar
3 Replies
POSTED BY: Udo Krause

enter image description here

POSTED BY: Simon Cadrin

Define a List of points and then apply Polygon to them. You can define styles for the face and edge of the polygon with FaceForm and EdgeForm directives.

points = {{0, 0}, {1, 0}, {1, 1}, {1/2, 1/2}, {0, 1}};
Graphics[{FaceForm[Orange], EdgeForm[Directive[Thick, Black]], 
  Polygon@points},
 ImageSize -> 200]

enter image description here

You can also click off a series of points using the cross hairs on the GraphicsTools palette from the menu Graphics/Drawing Tools item and then paste them into your notebook.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard