[Pharo-dev] [bloc] shape size?

Denis Kudriashov dionisiydk at gmail.com
Sun Apr 3 06:24:21 EDT 2016


2016-04-02 16:56 GMT+02:00 stepharo <stepharo at free.fr>:

> Hi
>
> I want a square morph with a circle or a line at 45 degree inside
> Now I do not get it.
>
> I thought that I needed to specialize drawOnAthensCanvas: so I did
>
> BlCell >> drawOnAthensCanvas: aCanvas
>
>     super drawOnAthensCanvas: aCanvas.
>     aCanvas
>         drawShape: (BlShape new
>                                 strokePaint:
>                                    (BlStrokePaint new
>                                         paint: (BlColorPaint new color:
> (Color blue));
>                                           width: 15);
>                             path: BlCirclePath new).
>

Can it be implemented by special kind of BiPath? it will draw rectangle and
circle inside.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20160403/409f43fd/attachment.html>


More information about the Pharo-dev mailing list