[Newbies] Re: Morph Drop Shadows
Jerome Peace
peace_the_dreamer at yahoo.com
Mon May 21 18:38:47 UTC 2007
[Newbies] Morph Drop Shadows
HI David H. Shanabrook,
As Bert says the trick is to move the morph w/o
lifting it.
One general way to do that with any morph is the brown
halo handle.
The other is to create a morph that behaves the way
you want.
I had started some work which I had hope to apply to
moving block puzzles.
I wrote a little about it Here:
http://lists.squeakfoundation.org/pipermail/squeak-dev/2007-May/116371.html
And posted my work in progress code to bob's super
swiki
http://209.143.91.36/super/728
MovingPiece-wiz
The codes in the form of a 3dot9 project.
Load the project and look at the change set for it.
Also earlier related work on puzzleboards modified a
pasteup morph to prevent overlapping pieces:
http://209.143.91.36/super/634
Puzzleboards
The code is in both project form (for an old 3.7
squeak) and as change sets. The change set should work
in 3.9 and probably a recent 3.8 (if they fixed the
bug mentioned)
You will need to adapt it to apply to pentomino's
Hth.
Yours in curiosity and service, --Jerome Peace
***
>[Newbies] Morph Drop Shadows
>
>
>Bert Freudenberg bert at freudenbergs.de
>Sun May 20 19:05:01 UTC 2007
>
>
>In that case it's surely simplest to add the mouse
handling to your
>pentomino tiles.
>
>- Bert -
>
>On May 20, 2007, at 21:01 , David H. Shanabrook
wrote:
>
>> I am experimenting with geometry tutors, such as
pentominos. when
>> trying to fit shapes precisely together the shadow
is very
>> disturbing, it is hard to know what is the shadow
and what is the
>> shape, especially for kids.
>>
>> dhs
>>
>>
>> On 20 May 2007, at 14:51, Bert Freudenberg wrote:
>>
>>> The Hand draws a shadow of all morphs it is
holding. You could
>>> implement the dragging of your morphs yourself and
not leave that
>>> to HandMorph. Or hack HandMorph>>fullDrawOn:
method to not draw
>>> the shadow (possibly in a subclass).
>>>
>>> May I ask what you need this for?
>>>
>>> - Bert -
>>>
>>> On May 20, 2007, at 19:38 , David H. Shanabrook
wrote:
>>>
>>>> Subbu
>>>>
>>>> It is the temporary shadow that appears when I
pick the morph
>>>> that I want to eliminate. I am using 3.9
although I can switch
>>>> to an older version if it would help.
>>>>
>>>> dhs
>>>>
>>>> On 20 May 2007, at 13:23, subbukk wrote:
>>>>
>>>>> On Sunday 20 May 2007 10:07 pm, David H.
Shanabrook wrote:
>>>>>> Can I change the pick up a morph so that it
doesn't have a
>>>>>> shadow? I
>>>>>> tried in the morph menu to drop shadow: show
shadow, but this
>>>>>> doesn't
>>>>>> work. It doesn't affect the morph whether the
show shadow is
>>>>>> checked or not.
>>>>> Which version is your image? For drop shadow to
be visible, make
>>>>> sure the drop
>>>>> shadow color is different from the background
and the offset is
>>>>> non-zero.
>>>>>
>>>>> The drop shadow (in halo menu) is different from
the temporary
>>>>> shadow that
>>>>> appears when you 'pick' the morph.
>>>>>
>>>>> Regards .. Subbu
>>>
***
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
More information about the Beginners
mailing list