[Cuis-dev] Selecting Morph

Hilaire Fernandes hilaire at drgeo.eu
Sat Jun 26 14:30:34 PDT 2021


Le 26/06/2021 à 22:01, Juan Vuletich a écrit :
>
> Today I kept thinking about this, while my daughter was at at her 
> horse riding class. I thought about Apple Lisa's regions, and how to 
> use them to store a "shadow", a convex area, disregarding, for 
> example, holes and concavities. Then I came up with something simpler. 
> Each morph (who wants it) can hold an array, where each position is an 
> y pixel position affected by it. For each pixel y, it would store 
> xStart and xEnd, the first and last x positions affected by that 
> morph. No extra information about each line would be stored. So, it is 
> a specification of the convex "shadow" I said before. Additionally it 
> is pretty cheap to compute (during the blend stage of VectorEngine) 
> and uses little memory (just proportional to the height and not to the 
> area). For each morph using this, the overhead would be in the KBs and 
> not in the MBs.
>
Will RunArray be an alternative?


> I need to start implementing this, first in the Smalltalk version of 
> the VectorEngine, and then in the Plugin code. I think this could work.

I am looking forward to test it.

Best

Hilaire

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu



More information about the Cuis-dev mailing list