Where's the Pen class in Faro?

I want to use the Pen class to teach some basic geometry at my local code club. I can do it with Squeak, but what about Faro?

p := Pen new.
p go: 100.

I remember reading that the Pen class was removed from the Pharo core, so is there a way to add it? Or should I stick with Squeak for this kind of programming?

+4
source share
2 answers
Gofer it
    squeaksource: 'PharoNonCorePackages';
    package: 'BitBltPen';
    load.

Then you can Display restoreAfter: [Pen example]

Tested in Pharo 3.0 Update # 30826

+2
source

He was present before Pharo 1.3.

BitBltPen Pharo 1.3 image Pharo 3 Beta . , , .

0

Source: https://habr.com/ru/post/1534080/


All Articles