Search code examples
smalltalkpharosqueak

Where's the Pen class in Pharo?


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

p := Pen new.
p go: 100.

I recall reading that the Pen class has been removed from core Pharo, so is there a way to add it back? Or should I stick to Squeak for this sort of programming?


Solution

  • Gofer it
        squeaksource: 'PharoNonCorePackages';
        package: 'BitBltPen';
        load.
    

    Then you can Display restoreAfter: [Pen example]

    Tested in Pharo 3.0 Update #30826