[squeak-dev] The Trunk: Graphics-fbs.211.mcz
Levente Uzonyi
leves at elte.hu
Mon Jun 3 17:18:22 UTC 2013
On Sun, 2 Jun 2013, commits at source.squeak.org wrote:
> Frank Shearar uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-fbs.211.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-fbs.211
> Author: fbs
> Time: 2 June 2013, 7:05:25.648 pm
> UUID: 65a2ecea-af2e-42cd-b61e-aece057c0e7b
> Ancestors: Graphics-fbs.210
>
> Form >> #stencil and Pen >> #putDotOfDiameter:at: are only called from EToys code, so they belong in EToys.
I don't see what Form >> #stencil has to do with EToys. It's a general
purpose method to create a stencil from a form. :)
Levente
>
> =============== Diff against Graphics-fbs.210 ===============
>
> Item was removed:
> - ----- Method: Form>>stencil (in category 'image manipulation') -----
> - stencil
> - "return a 1-bit deep, black-and-white stencil of myself"
> -
> - | canvas |
> - canvas := FormCanvas extent: self extent depth: 1.
> - canvas fillColor: (Color white).
> -
> - canvas stencil: self at: 0 at 0
> - sourceRect: (Rectangle origin: 0 at 0 corner: self extent) color: Color black.
> -
> - ^ canvas form
> - !
>
> Item was removed:
> - ----- Method: Pen>>putDotOfDiameter:at: (in category 'operations') -----
> - putDotOfDiameter: aDiameter at: aPoint
> - "Put a dot of the given size at the given point, using my colot"
> -
> - (FormCanvas on: destForm)
> - fillOval: (Rectangle center: aPoint extent: (aDiameter @ aDiameter))
> - color: self color!
>
>
>
More information about the Squeak-dev
mailing list
|