Macaulay2 » Documentation
Packages » Graphics :: picture(BasicList)
next | previous | forward | backward | up | index | toc

picture(BasicList) -- create a picture object

Synopsis

Description

i1 : myfgp1=formatGraphicPrimitives({point(20.,30.),point(30.,40.)},hashTable {"fill"=>"black"})

o1 = FormattedGraphicPrimitives{{Point2D{20, 30}, Point2D{30, 40}}, HashTable{"fill" => black}}

o1 : FormattedGraphicPrimitives
i2 : myfgp2=formatGraphicPrimitives({circle(point(20.,30.),10)},hashTable {"fill"=>"red"})

o2 = FormattedGraphicPrimitives{{Circle{Point2D{20, 30}, 10}}, HashTable{"fill" => red}}

o2 : FormattedGraphicPrimitives
i3 : picture({myfgp1,myfgp2})

o3 = Picture{FormattedGraphicPrimitives{{Point2D{20, 30}, Point2D{30, 40}}, HashTable{"fill" => black}}, FormattedGraphicPrimitives{{Circle{Point2D{20, 30}, 10}}, HashTable{"fill" => red}}}

o3 : Picture

Ways to use this method: