문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top