Re: [Pharo-project] Athens work in progress: couple screenshots
Igor, what do i need to properly run the example? AthensBalloonSurface is using NB ? or a there's a plugin? Can i use a Mac VM to use Athens? Fernando On Wed, Nov 23, 2011 at 11:45 AM, Igor Stasenko <siguctua@gmail.com> wrote:
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.
On 23 November 2011 12:13, Fernando Olivero <fernando.olivero@usi.ch> wrote:
Igor, what do i need to properly run the example?
AthensBalloonSurface is using NB ? or a there's a plugin?
Can i use a Mac VM to use Athens?
no, its using Balloon engine, which is present in any today's VM. Other backends will be coming , and yes, most probably i will use NativeBoost for implementation :)
Fernando
On Wed, Nov 23, 2011 at 11:45 AM, Igor Stasenko <siguctua@gmail.com> wrote:
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.
-- Best regards, Igor Stasenko.
participants (2)
-
Fernando Olivero -
Igor Stasenko