|
Re: usage PolygonMorph: msg#00157lang.smalltalk.squeak.beginners
Konrad.Krentz wrote: One fun way is to use PolygonMorph shapeFromPen: penBlock color: c borderWidth: bw borderColor: bc You make the pen draw a hexagon and that turns into a hexagon PolygonMorph. So you get: World addMorph: (PolygonMorph shapeFromPen: [:p | 1 to: 6 do:[:i|p go: 50.p turn: 60. ]] color: Color red borderWidth: 1 borderColor: Color black) karl
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | AW: usage PolygonMorph, Konrad.Krentz |
|---|---|
| Next by Date: | classes and subclasses and inheritance, David H. Shanabrook |
| Previous by Thread: | AW: usage PolygonMorph, Konrad.Krentz |
| Next by Thread: | usage PolygonMorph, Jerome Peace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |