put it in the class comments somewhere. Do not expect that people will know what you know. Make the entry simple and immediate. Stef
On 23 November 2011 11:21, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Igor
prepare the following: - a class showing an example with the transformation stuff (because it is unclear)
There is one: AthensBalloonSurfaceExamples
- a tester canvas so that people can to
(CanvasTester testClass: CircleMorph) open.
err.. what is it?
To test morphic display on Athens you can do following:
| surf | surf := AthensBalloonSurface new form: (Form extent: Display extent depth: 32).
surf drawDuring: [ :canvas |
canvas fullDrawMorph: yourMorph. ].
Display getCanvas translucentImage: surf form at: 0@0
People could then extend the Athens package with the method in the morph.
It would be great to help adapting all morphs for Athens. Morphs, that having own draw method(s), should also have own #drawOnAthensCanvas:
I didn't covered all of them yet, so a little help with it would be nice. Also, it is good for checking the missing functionality in Athens API as well as learning it.
There's not much to learn yet :)
basicly what you should know is that you have coordinate system:
canvas pathTransform (instance of AthensAffineTransform)
which you can manipulate to achieve desirable results.
And actual drawing:
canvas setPaint: somePaintObject. ( color, gradient, or anything which conforms to AthensPaint protocol ). canvas drawShape: (rect or path or anything , which responds to: 'paintFillsUsing: aPaint on: anAthensCanvas' ). canvas draw: (anything , which responds to #drawOnAthensCanvas: )
think that we are dummies willing to help and do the two things I mention above. I'm then sure you will get contributions.
Stef
-- Best regards, Igor Stasenko.