Gofer it
squeaksource: 'PharoNonCorePackages';
package: 'BitBltPen';
load.
Then you can Display restoreAfter: [Pen example]
Tested in Pharo 3.0 Update #30826
Вопрос
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?
Решение
Gofer it
squeaksource: 'PharoNonCorePackages';
package: 'BitBltPen';
load.
Then you can Display restoreAfter: [Pen example]
Tested in Pharo 3.0 Update #30826
Другие советы
It was present till Pharo 1.3.
You can file out the BitBltPen package from a Pharo 1.3 image and file it in a Pharo 3 Beta image. I just tried it and it seems to work.