[Newbies] Generating subMorphs with relative coordinates
Nicola Mingotti
nmingotti at gmail.com
Thu Oct 31 21:18:08 UTC 2019
> Grazie mille!
prego;)
> On Oct 31, 2019, at 2:04 PM, Christian Kellermann <ckeen at pestilenz.org> wrote:
>
> * Nicola Mingotti <nmingotti at gmail.com <mailto:nmingotti at gmail.com>> [191031 21:53]:
>>
>> Hi Christian,
>>
>> Try this snippet, I think it is self explanatory.
>>
>> -----------
>> tr := TransformMorph new.
>> tr openInWorld.
>> tr bounds: (100 at 100 corner: 300 at 300).
>>
>> c1 := CircleMorph new.
>> tr addMorph: c1.
>> c1 position." 0 at 0"
>> c1 center: 0 at 0.
>> -----------
>>
>
> Excellent, that's exactly what I need!
>
> Grazie mille!
>
> --
> May you be peaceful, may you live in safety, may you be free from
> suffering, and may you live with ease.
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org <mailto:Beginners at lists.squeakfoundation.org>
> http://lists.squeakfoundation.org/mailman/listinfo/beginners <http://lists.squeakfoundation.org/mailman/listinfo/beginners>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20191031/49eb4ad5/attachment.html>
More information about the Beginners
mailing list